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:
Brad Fitzpatrick
2025-11-15 10:01:44 -08:00
committed by Brad Fitzpatrick
parent 8aa46a3956
commit 4e01e8a66e

View File

@@ -182,6 +182,7 @@ func TestUpdateRace(t *testing.T) {
group.Wait()
logger.mu.Lock()
close(logger.recordsChan)
logger.recordsChan = nil
logger.mu.Unlock()
}