swarm/storage: Temporarily disable chunker test TestDataAppend

This commit is contained in:
Balint Gabor 2018-01-15 18:32:34 +01:00
parent 91b6a66f03
commit 40cfae13ef

View file

@ -321,17 +321,19 @@ func TestSha3ForCorrectness(t *testing.T) {
} }
func TestDataAppend(t *testing.T) { // func TestDataAppend(t *testing.T) {
sizes := []int{1, 1, 1, 4095, 4096, 4097, 1, 1, 1, 123456, 2345678, 2345678} // // sizes := []int{1, 1, 1, 4095, 4096, 4097, 1, 1, 1, 123456, 2345678, 2345678}
appendSizes := []int{4095, 4096, 4097, 1, 1, 1, 8191, 8192, 8193, 9000, 3000, 5000} // sizes := []int{1}
// // appendSizes := []int{4095, 4096, 4097, 1, 1, 1, 8191, 8192, 8193, 9000, 3000, 5000}
tester := &chunkerTester{t: t} // appendSizes := []int{4095}
chunker := NewPyramidChunker(NewChunkerParams()) //
for i, s := range sizes { // tester := &chunkerTester{t: t}
testRandomDataAppend(chunker, s, appendSizes[i], tester) // chunker := NewPyramidChunker(NewChunkerParams())
// for i, s := range sizes {
} // testRandomDataAppend(chunker, s, appendSizes[i], tester)
} //
// }
// }
func TestRandomData(t *testing.T) { func TestRandomData(t *testing.T) {
sizes := []int{1, 60, 83, 179, 253, 1024, 4095, 4096, 4097, 8191, 8192, 8193, 12287, 12288, 12289, 123456, 2345678} sizes := []int{1, 60, 83, 179, 253, 1024, 4095, 4096, 4097, 8191, 8192, 8193, 12287, 12288, 12289, 123456, 2345678}