diff --git a/wgengine/magicsock/magicsock_test.go b/wgengine/magicsock/magicsock_test.go index 2a5c0d3da..8fc7af071 100644 --- a/wgengine/magicsock/magicsock_test.go +++ b/wgengine/magicsock/magicsock_test.go @@ -896,7 +896,10 @@ func testTwoDevicePing(t *testing.T, d *devices) { // This gets reassigned inside every test, so that the connections // all log using the "current" t.Logf function. Sigh. - logf, setT := makeNestable(t) + nestedLogf, setT := makeNestable(t) + + logf, closeLogf := logger.LogfCloser(nestedLogf) + defer closeLogf() derpMap, cleanup := runDERPAndStun(t, logf, d.stun, d.stunIP) defer cleanup()