Skip to content

Commit ae37b49

Browse files
authored
accounts/abi/bind/v2: fix error assertion in test (#33041)
1 parent 739f6f4 commit ae37b49

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

accounts/abi/bind/v2/util_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,9 @@ func TestWaitDeployedCornerCases(t *testing.T) {
144144
done := make(chan struct{})
145145
go func() {
146146
defer close(done)
147-
want := errors.New("context canceled")
148147
_, err := bind.WaitDeployed(ctx, backend.Client(), tx.Hash())
149-
if err == nil || errors.Is(want, err) {
150-
t.Errorf("error mismatch: want %v, got %v", want, err)
148+
if !errors.Is(err, context.Canceled) {
149+
t.Errorf("error mismatch: want %v, got %v", context.Canceled, err)
151150
}
152151
}()
153152

0 commit comments

Comments
 (0)