Skip to content

Commit 4e01e8a

Browse files
committed
wgengine/netlog: fix send to closed channel in test
Fixes tailscale#17922 Change-Id: I2cd600b0ecda389079f2004985ac9a25ffbbfdd1 Signed-off-by: Brad Fitzpatrick <[email protected]>
1 parent 8aa46a3 commit 4e01e8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wgengine/netlog/netlog_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ func TestUpdateRace(t *testing.T) {
182182
group.Wait()
183183
logger.mu.Lock()
184184
close(logger.recordsChan)
185+
logger.recordsChan = nil
185186
logger.mu.Unlock()
186187
}
187188

0 commit comments

Comments
 (0)