Skip to content

Commit

Permalink
light: remove typo dupe line, use Fatal instead of panic
Browse files Browse the repository at this point in the history
Signed-off-by: meows <b5c6@protonmail.com>
  • Loading branch information
meowsbits committed Mar 12, 2020
1 parent c3de2c9 commit 687e626
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions light/txpool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,7 @@ func TestTxPool(t *testing.T) {
pool.setNewHead(h)
}
if _, err := lightchain.InsertHeaderChain([]*types.Header{block.Header()}, 1); err != nil {
panic(err)
}

if _, err := lightchain.InsertHeaderChain([]*types.Header{block.Header()}, 1); err != nil {
panic(err)
t.Fatal(err)
}

got := <-relay.mined
Expand Down

0 comments on commit 687e626

Please sign in to comment.