Commit 088b714
fix: reloader unittest races on writeWg (#2352)
It's possible for `writerWg.Add(1)` to race with the `notifyFn` passed
in `eg.Go`'s call to `pr.watch`. Simple fix is incrementing after
writeWg is initialized.
Co-authored-by: Chris Stockton <chris.stockton@supabase.io>1 parent 0096575 commit 088b714
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| |||
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
193 | | - | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
0 commit comments