Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iva-romanenko committed Sep 18, 2024
1 parent f01ce05 commit a7190d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/retry/interceptor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package retry

import (
"context"
"google.golang.org/protobuf/proto"
"net"
"strconv"
"testing"
Expand Down Expand Up @@ -149,7 +150,7 @@ func TestFiveRetries(t *testing.T) {

ser.countGetFailures = 5
res, err = c.Get(context.Background(), &compute.GetZoneRequest{ZoneId: "id"}, WithMax(5))
require.Equal(t, &defaultZone, res)
require.True(t, proto.Equal(&defaultZone, res), "Expected zone and actual zone should be equal")
require.NoError(t, err)
}

Expand Down Expand Up @@ -192,7 +193,7 @@ func TestRetriableCodes(t *testing.T) {

res, err = c.Get(context.Background(), &compute.GetZoneRequest{ZoneId: "id"}, WithMax(len(trc.codes)))
require.NoError(t, err)
require.Equal(t, &defaultZone, res)
require.True(t, proto.Equal(&defaultZone, res), "Expected zone and actual zone should be equal")
}

type timeoutChecker interface {
Expand Down

0 comments on commit a7190d7

Please sign in to comment.