We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff2a0ec commit dc01c0fCopy full SHA for dc01c0f
batcher/batcher_test.go
@@ -149,9 +149,15 @@ func TestDispose(t *testing.T) {
149
[]interface{}{"a", "b"},
150
[]interface{}{"c"},
151
}
152
+
153
+ // Wait for items to get to the channel
154
+ for len(b.(*basicBatcher).batchChan) == 0 {
155
+ time.Sleep(1 * time.Millisecond)
156
+ }
157
batch1, err := b.Get()
158
assert.Contains(possibleBatches, batch1)
159
assert.Nil(err)
160
161
batch2, err := b.Get()
162
assert.Contains(possibleBatches, batch2)
163
0 commit comments