diff options
author | Anton Evangelatov <anton.evangelatov@gmail.com> | 2018-10-09 17:45:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-09 17:45:42 +0800 |
commit | 0fe9a372b3ff9fd0746c3e271bd0ddddd3412122 (patch) | |
tree | 564456af329ea45a066ccf4c8d084c4fddcf645d /swarm/swarm_test.go | |
parent | d5c7a6056afdc8c3364b1774b5d2bc4a74b028a6 (diff) | |
download | go-tangerine-0fe9a372b3ff9fd0746c3e271bd0ddddd3412122.tar go-tangerine-0fe9a372b3ff9fd0746c3e271bd0ddddd3412122.tar.gz go-tangerine-0fe9a372b3ff9fd0746c3e271bd0ddddd3412122.tar.bz2 go-tangerine-0fe9a372b3ff9fd0746c3e271bd0ddddd3412122.tar.lz go-tangerine-0fe9a372b3ff9fd0746c3e271bd0ddddd3412122.tar.xz go-tangerine-0fe9a372b3ff9fd0746c3e271bd0ddddd3412122.tar.zst go-tangerine-0fe9a372b3ff9fd0746c3e271bd0ddddd3412122.zip |
swarm, swarm/storage: lower constants for faster tests (#17876)
* swarm/storage: lower constants for faster tests
* swarm: reduce test size for TestLocalStoreAndRetrieve
* swarm: reduce nodes for dec_inc_node_count
Diffstat (limited to 'swarm/swarm_test.go')
-rw-r--r-- | swarm/swarm_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swarm/swarm_test.go b/swarm/swarm_test.go index c6569e37b..d85eb9118 100644 --- a/swarm/swarm_test.go +++ b/swarm/swarm_test.go @@ -316,11 +316,11 @@ func TestLocalStoreAndRetrieve(t *testing.T) { } // by default, test only the lonely chunk cases - sizes := []int{1, 60, 4097, 524288 + 1, 7*524288 + 1, 128*524288 + 1} + sizes := []int{1, 60, 4097, 524288 + 1, 7*524288 + 1} if *longrunning { // test broader set of cases if -longruning flag is set - sizes = append(sizes, 83, 179, 253, 1024, 4095, 4096, 8191, 8192, 8193, 12287, 12288, 12289, 123456, 2345678, 67298391, 524288, 524288+4096, 524288+4097, 7*524288, 7*524288+4096, 7*524288+4097, 128*524288, 128*524288+4096, 128*524288+4097, 816778334) + sizes = append(sizes, 83, 179, 253, 1024, 4095, 4096, 8191, 8192, 8193, 12287, 12288, 12289, 123456, 2345678, 67298391, 524288, 524288+4096, 524288+4097, 7*524288, 7*524288+4096, 7*524288+4097, 128*524288+1, 128*524288, 128*524288+4096, 128*524288+4097, 816778334) } for _, n := range sizes { testLocalStoreAndRetrieve(t, swarm, n, true) |