Skip to content

Commit 504134a

Browse files
fix: check error using errors pkg
1 parent 572d8a1 commit 504134a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/transaction/backendnoop/backend_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package backendnoop_test
66

77
import (
88
"context"
9+
"errors"
910
"testing"
1011

1112
"github.com/ethereum/go-ethereum"
@@ -31,7 +32,7 @@ func TestBackend(t *testing.T) {
3132

3233
// Test BalanceAt returns ErrChainDisabled
3334
balance, err := backend.BalanceAt(ctx, common.Address{}, nil)
34-
if err != postagecontract.ErrChainDisabled {
35+
if !errors.Is(err, postagecontract.ErrChainDisabled) {
3536
t.Fatalf("expected ErrChainDisabled, got %v", err)
3637
}
3738
if balance != nil {

0 commit comments

Comments
 (0)