test: Fix incorrect error check

This commit is contained in:
Austin Larson 2025-10-28 11:13:24 -04:00
parent 739f6f46a2
commit 29415666c2
No known key found for this signature in database
GPG key ID: 8EEAA8A4359A0A41

View file

@ -144,10 +144,9 @@ func TestWaitDeployedCornerCases(t *testing.T) {
done := make(chan struct{}) done := make(chan struct{})
go func() { go func() {
defer close(done) defer close(done)
want := errors.New("context canceled")
_, err := bind.WaitDeployed(ctx, backend.Client(), tx.Hash()) _, err := bind.WaitDeployed(ctx, backend.Client(), tx.Hash())
if err == nil || errors.Is(want, err) { if !errors.Is(err, context.Canceled) {
t.Errorf("error mismatch: want %v, got %v", want, err) t.Errorf("error mismatch: want %v, got %v", context.Canceled, err)
} }
}() }()