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>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
6e24f50946
commit
4650061326
@@ -652,7 +652,9 @@ func runTestStateMachine(t *testing.T, seamless bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// undo the state hack above.
|
// undo the state hack above.
|
||||||
|
b.mu.Lock()
|
||||||
b.state = ipn.Starting
|
b.state = ipn.Starting
|
||||||
|
b.mu.Unlock()
|
||||||
|
|
||||||
// User wants to logout.
|
// User wants to logout.
|
||||||
store.awaitWrite()
|
store.awaitWrite()
|
||||||
|
|||||||
Reference in New Issue
Block a user