mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-05 23:55:11 +00:00
core: fix ineffassign warning in test code
ineffectual assignment to err (ineffassign)
This commit is contained in:
parent
ec50bb4041
commit
4cd3da99b4
3 changed files with 5 additions and 2 deletions
|
@ -238,6 +238,7 @@ func TestGetBlock(t *testing.T) {
|
|||
t.Run("non-empty block", func(t *testing.T) {
|
||||
tx, err := testchain.NewTransferFromOwner(bc, bc.contracts.NEO.Hash,
|
||||
random.Uint160(), 1, 1, 1000)
|
||||
require.NoError(t, err)
|
||||
b := bc.newBlock(tx)
|
||||
require.NoError(t, bc.AddHeaders(&b.Header))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue