mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-18 13:59:26 +00:00
accounts/abi/bind/v2: fix error assertion in test (#33041)
This commit is contained in:
parent
739f6f46a2
commit
ae37b4928c
1 changed files with 2 additions and 3 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue