Commit 74fb6247 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 18584ab0
...@@ -240,30 +240,35 @@ func TestΔFtailRandom(t *testing.T) { ...@@ -240,30 +240,35 @@ func TestΔFtailRandom(t *testing.T) {
return vv[i:i+1] return vv[i:i+1]
} }
for i := 0; i < n; i++ { testq := make(chan ΔFTestEntry)
nδblkTab := rng.Intn(10) // XXX -> to maxBlk ? go func() {
nδdataTab := rng.Intn(len(vv)) defer close(testq)
for i := 0; i < n; i++ {
δblkTab := map[int64]string{} nδblkTab := rng.Intn(10) // XXX -> to maxBlk ?
δdataTab := setStr{} nδdataTab := rng.Intn(len(vv))
blkv := rng.Perm(100) // XXX = maxBlk ? δblkTab := map[int64]string{}
for j := 0; j < nδblkTab; j++ { δdataTab := setStr{}
blk := blkv[j]
zblk := randv() blkv := rng.Perm(100) // XXX = maxBlk ?
δblkTab[int64(blk)] = zblk for j := 0; j < nδblkTab; j++ {
} blk := blkv[j]
zblk := randv()
vv_ := rng.Perm(len(vv)) δblkTab[int64(blk)] = zblk
for j := 0; j < nδdataTab; j++ { }
k := vv_[j]
v := vv[k:k+1]
δdataTab.Add(v)
}
vv_ := rng.Perm(len(vv))
for j := 0; j < nδdataTab; j++ {
k := vv_[j]
v := vv[k:k+1]
δdataTab.Add(v)
}
testq <- ΔFTestEntry{δblkTab, δdataTab}
}
}()
} testΔFtail(t, testq)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment