TestLoadConcurrent exercises Load under concurrent conditions and is most useful under test with `-race` enabled.
(t *testing.T)
| 161 | // TestLoadConcurrent exercises Load under concurrent conditions |
| 162 | // and is most useful under test with `-race` enabled. |
| 163 | func TestLoadConcurrent(t *testing.T) { |
| 164 | var wg sync.WaitGroup |
| 165 | |
| 166 | for i := 0; i < 100; i++ { |
| 167 | wg.Go(func() { |
| 168 | _ = Load(testCfg, true) |
| 169 | }) |
| 170 | } |
| 171 | wg.Wait() |
| 172 | } |
| 173 | |
| 174 | type fooModule struct { |
| 175 | IntField int |