diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-29 10:20:00 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:54 +0800 |
commit | d09c4f37a430b03e42d0ae3324907f040adc1449 (patch) | |
tree | 05f27af84647a2d3296a8d4fec578c11c5a1f87a /dex/handler_test.go | |
parent | 25a0e3a6b67cf646611153599e5b9cde2f2e8435 (diff) | |
download | dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.gz dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.bz2 dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.lz dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.xz dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.zst dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.zip |
Fix lint
Diffstat (limited to 'dex/handler_test.go')
-rw-r--r-- | dex/handler_test.go | 8 |
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 |