Skip to content

Commit 5175705

Browse files
committed
fix txcache unit test
1 parent 7531362 commit 5175705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

txcache/blocks_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@ func Test_getTransactionsInBlock(t *testing.T) {
9090

9191
txs, err := getTransactionsInBlock(&blockBody, txCache, 0)
9292
require.Nil(t, txs)
93-
require.Equal(t, errNotFoundTx, err)
93+
require.ErrorIs(t, err, errNotFoundTx)
9494
})
9595
}

0 commit comments

Comments
 (0)