mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-24 00:18:20 -05:00
wgengine/netlog: fix send to closed channel in test
Fixes #17922 Change-Id: I2cd600b0ecda389079f2004985ac9a25ffbbfdd1 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
8aa46a3956
commit
4e01e8a66e
@@ -182,6 +182,7 @@ func TestUpdateRace(t *testing.T) {
|
||||
group.Wait()
|
||||
logger.mu.Lock()
|
||||
close(logger.recordsChan)
|
||||
logger.recordsChan = nil
|
||||
logger.mu.Unlock()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user