Commit 80643b3
fix: resolve data race in TestRepackInterval (#208)
## Problem
`TestRepackInterval/Enabled` has a data race between `assert.NotZero`
(which uses `repr` to deep-reflect over the entire `*git.Strategy`
struct) and HTTP transport goroutines spawned during `git.New`.
## Fix
Replace `assert.NotZero(t, s)` with `assert.True(t, s != nil)` — the
test only needs to verify a non-nil return, so deep reflection is
unnecessary.
Co-authored-by: Amp <amp@ampcode.com>1 parent b6567eb commit 80643b3
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
0 commit comments