Skip to content

Commit 4650061

Browse files
committed
ipn/ipnlocal: fix state_test data race seen in CI
Unfortunately I closed the tab and lost it in my sea of CI failures I'm currently fighting. Updates #cleanup Change-Id: I4e3a652d57d52b75238f25d104fc1987add64191 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
1 parent 6e24f50 commit 4650061

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ipn/ipnlocal/state_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,9 @@ func runTestStateMachine(t *testing.T, seamless bool) {
652652
}
653653

654654
// undo the state hack above.
655+
b.mu.Lock()
655656
b.state = ipn.Starting
657+
b.mu.Unlock()
656658

657659
// User wants to logout.
658660
store.awaitWrite()

0 commit comments

Comments
 (0)