wgengine/netlog: fix send to closed channel in test

Fixes #17922

Change-Id: I2cd600b0ecda389079f2004985ac9a25ffbbfdd1
Signed-off-by: Brad Fitzpatrick <[email protected]>
This commit is contained in:
Brad Fitzpatrick authored and Brad Fitzpatrick committed 2025-11-15 10:20:17 -08:00
1 parent 8aa46a3956
commit 4e01e8a66e
1 file changed
+1
+1
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()
}