Repository navigation
Commit 76c0174
test(dns): guard the probed name in TestProbeDenial (#234)
The test recorded the queried name in the DNS server's handler goroutine
and read it from the test goroutine without synchronization, which the
race detector in CI's Linux legs flagged. Guard it with a mutex.
Verified: go test -race -count=3 ./internal/dns ./internal/dnsserver.
Refs #234
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent ddb10c1 commit 76c0174
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
| 32 | + | |
28 | 33 | | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| 46 | + | |
| 47 | + | |
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
| |||
0 commit comments