From 29415666c2c059f448d4d44befcb114ec860eb76 Mon Sep 17 00:00:00 2001 From: Austin Larson Date: Tue, 28 Oct 2025 11:13:24 -0400 Subject: [PATCH] test: Fix incorrect error check --- accounts/abi/bind/v2/util_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/accounts/abi/bind/v2/util_test.go b/accounts/abi/bind/v2/util_test.go index a9f5b4035ce1..5beb0a4faed4 100644 --- a/accounts/abi/bind/v2/util_test.go +++ b/accounts/abi/bind/v2/util_test.go @@ -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) } }()