aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/storage/chunker_test.go
diff options
context:
space:
mode:
authorAnton Evangelatov <anton.evangelatov@gmail.com>2018-10-09 17:45:42 +0800
committerGitHub <noreply@github.com>2018-10-09 17:45:42 +0800
commit0fe9a372b3ff9fd0746c3e271bd0ddddd3412122 (patch)
tree564456af329ea45a066ccf4c8d084c4fddcf645d /swarm/storage/chunker_test.go
parentd5c7a6056afdc8c3364b1774b5d2bc4a74b028a6 (diff)
downloaddexon-0fe9a372b3ff9fd0746c3e271bd0ddddd3412122.tar
dexon-0fe9a372b3ff9fd0746c3e271bd0ddddd3412122.tar.gz
dexon-0fe9a372b3ff9fd0746c3e271bd0ddddd3412122.tar.bz2
dexon-0fe9a372b3ff9fd0746c3e271bd0ddddd3412122.tar.lz
dexon-0fe9a372b3ff9fd0746c3e271bd0ddddd3412122.tar.xz
dexon-0fe9a372b3ff9fd0746c3e271bd0ddddd3412122.tar.zst
dexon-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/storage/chunker_test.go')
-rw-r--r--swarm/storage/chunker_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/swarm/storage/chunker_test.go b/swarm/storage/chunker_test.go
index db719ca04..6172d8a09 100644
--- a/swarm/storage/chunker_test.go
+++ b/swarm/storage/chunker_test.go
@@ -232,7 +232,8 @@ func TestDataAppend(t *testing.T) {
func TestRandomData(t *testing.T) {
// This test can validate files up to a relatively short length, as tree chunker slows down drastically.
// Validation of longer files is done by TestLocalStoreAndRetrieve in swarm package.
- sizes := []int{1, 60, 83, 179, 253, 1024, 4095, 4096, 4097, 8191, 8192, 8193, 12287, 12288, 12289, 524288, 524288 + 1, 524288 + 4097, 7 * 524288, 7*524288 + 1, 7*524288 + 4097}
+ //sizes := []int{1, 60, 83, 179, 253, 1024, 4095, 4096, 4097, 8191, 8192, 8193, 12287, 12288, 12289, 524288, 524288 + 1, 524288 + 4097, 7 * 524288, 7*524288 + 1, 7*524288 + 4097}
+ sizes := []int{1, 60, 83, 179, 253, 1024, 4095, 4097, 8191, 8192, 12288, 12289, 524288}
tester := &chunkerTester{t: t}
for _, s := range sizes {