Fixing flakey TestManyDones which fails due to timeout (25 seconds), by reducing the number of wait group sequences
@@ -39,11 +39,12 @@ func TestSequentialWaitgroup(t *testing.T) {
func TestManyDones(t *testing.T) {
wg := NewSequentialWaitGroup()
- for i := 1; i < 1000; i++ {
+ waitGroupCount := 10
+ for i := 1; i < waitGroupCount; i++ {
wg.Add(int64(i), i)
}
- for i := 1; i < 1000; i++ {
+ for i := 1; i < waitGroupCount; i++ {
wg.Wait(int64(i - 1))
isAwake := make(chan bool)
