aboutsummaryrefslogtreecommitdiffstats
path: root/dex/handler_test.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-29 10:20:00 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:19 +0800
commit7ece1a9f76ba17eb07c078cce6f8ffe48bac7551 (patch)
tree6f3a71a6257e23521a1ed4be3088f436b757bdb3 /dex/handler_test.go
parent3bc8c1628257b2fab50f260e048118fc56b1ab02 (diff)
downloadgo-tangerine-7ece1a9f76ba17eb07c078cce6f8ffe48bac7551.tar.gz
go-tangerine-7ece1a9f76ba17eb07c078cce6f8ffe48bac7551.tar.zst
go-tangerine-7ece1a9f76ba17eb07c078cce6f8ffe48bac7551.zip
Fix lint
Diffstat (limited to 'dex/handler_test.go')
-rw-r--r--dex/handler_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/dex/handler_test.go b/dex/handler_test.go
index c9e99abc9..d8398bd2d 100644
--- a/dex/handler_test.go
+++ b/dex/handler_test.go
@@ -239,10 +239,10 @@ func testGetBlockBodies(t *testing.T, protocol int) {
available []bool // Availability of explicitly requested blocks
expected int // Total number of existing blocks to expect
}{
- {1, nil, nil, 1}, // A single random block should be retrievable
- {10, nil, nil, 10}, // Multiple random blocks should be retrievable
- {limit, nil, nil, limit}, // The maximum possible blocks should be retrievable
- {limit + 1, nil, nil, limit}, // No more than the possible block count should be returned
+ {1, nil, nil, 1}, // A single random block should be retrievable
+ {10, nil, nil, 10}, // Multiple random blocks should be retrievable
+ {limit, nil, nil, limit}, // The maximum possible blocks should be retrievable
+ {limit + 1, nil, nil, limit}, // No more than the possible block count should be returned
{0, []common.Hash{pm.blockchain.Genesis().Hash()}, []bool{true}, 1}, // The genesis block should be retrievable
{0, []common.Hash{pm.blockchain.CurrentBlock().Hash()}, []bool{true}, 1}, // The chains head block should be retrievable
{0, []common.Hash{{}}, []bool{false}, 0}, // A non existent block should not be returned