File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,12 @@ func (s *vfsTestSuite) SetupSuite() {
3131 }
3232 uris := make ([]string , len (registers ))
3333 var wg sync.WaitGroup
34+ wg .Add (len (registers ))
3435 for i := range registers {
35- wg .Go (func () { uris [i ] = registers [i ](s .T ()) })
36+ go func () {
37+ uris [i ] = registers [i ](s .T ())
38+ wg .Done ()
39+ }()
3640 }
3741 wg .Wait ()
3842
Original file line number Diff line number Diff line change @@ -29,8 +29,12 @@ func (s *ioTestSuite) SetupSuite() {
2929 }
3030 uris := make ([]string , len (registers ))
3131 var wg sync.WaitGroup
32+ wg .Add (len (registers ))
3233 for i := range registers {
33- wg .Go (func () { uris [i ] = registers [i ](s .T ()) })
34+ go func () {
35+ uris [i ] = registers [i ](s .T ())
36+ wg .Done ()
37+ }()
3438 }
3539 wg .Wait ()
3640
You can’t perform that action at this time.
0 commit comments