Skip to content

Commit

Permalink
chore: fix tests compile
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Aug 1, 2023
1 parent 10cc553 commit 5bf456f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/types/responses_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func TestToBlockInvalid(t *testing.T) {
Header: BlockHeader{Height: "invalid"},
}

block, err := blockRaw.ToBlock(map[string]bool{})
block, err := blockRaw.ToBlock()
assert.NotNil(t, err, "Error should be presented!")
assert.Nil(t, block, "Block should not be presented!")
}
Expand All @@ -31,7 +31,7 @@ func TestToBlockValid(t *testing.T) {
},
}

block, err := blockRaw.ToBlock(map[string]bool{})
block, err := blockRaw.ToBlock()
assert.Nil(t, err, "Error should not be presented!")
assert.NotNil(t, block, "Block should be presented!")
assert.Equalf(t, block.Height, int64(100), "Block height mismatch!")
Expand Down

0 comments on commit 5bf456f

Please sign in to comment.