|
|
|
@ -124,13 +124,13 @@ func makeRandomIndexes(lengths []int, max int) [][]bloomIndexes { |
|
|
|
|
|
|
|
|
|
// testMatcherDiffBatches runs the given matches test in single-delivery and also
|
|
|
|
|
// in batches delivery mode, verifying that all kinds of deliveries are handled
|
|
|
|
|
// correctly withn.
|
|
|
|
|
// correctly within.
|
|
|
|
|
func testMatcherDiffBatches(t *testing.T, filter [][]bloomIndexes, start, blocks uint64, intermittent bool, retrievals uint32) { |
|
|
|
|
singleton := testMatcher(t, filter, start, blocks, intermittent, retrievals, 1) |
|
|
|
|
batched := testMatcher(t, filter, start, blocks, intermittent, retrievals, 16) |
|
|
|
|
|
|
|
|
|
if singleton != batched { |
|
|
|
|
t.Errorf("filter = %v blocks = %v intermittent = %v: request count mismatch, %v in signleton vs. %v in batched mode", filter, blocks, intermittent, singleton, batched) |
|
|
|
|
t.Errorf("filter = %v blocks = %v intermittent = %v: request count mismatch, %v in singleton vs. %v in batched mode", filter, blocks, intermittent, singleton, batched) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|