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 Alvarez
parent 071a849421
commit c726a2fc17

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)
} }
}() }()