accounts/abi/bind/v2: fix error assertion in test (#33041)

This commit is contained in:
Austin Larson 2025-10-29 02:59:45 -04:00 committed by GitHub
parent 739f6f46a2
commit ae37b4928c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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