mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-18 12:32:13 +00:00
wgengine/magicsock: prevent log-after-test in TestTwoDevicePing
This commit is contained in:
parent
edce91a8a6
commit
e4c075cd95
@ -896,7 +896,10 @@ func testTwoDevicePing(t *testing.T, d *devices) {
|
|||||||
|
|
||||||
// This gets reassigned inside every test, so that the connections
|
// This gets reassigned inside every test, so that the connections
|
||||||
// all log using the "current" t.Logf function. Sigh.
|
// 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)
|
derpMap, cleanup := runDERPAndStun(t, logf, d.stun, d.stunIP)
|
||||||
defer cleanup()
|
defer cleanup()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user