diff options
Diffstat (limited to 'tstest/integration/integration_test.go')
| -rw-r--r-- | tstest/integration/integration_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tstest/integration/integration_test.go b/tstest/integration/integration_test.go index 504597586..ccb2d122a 100644 --- a/tstest/integration/integration_test.go +++ b/tstest/integration/integration_test.go @@ -555,6 +555,23 @@ func TestLogoutRemovesAllPeers(t *testing.T) { wantNode0PeerCount(expectedPeers) // all existing peers and the new node } +func TestLogoutAsyncState(t *testing.T) { + t.Parallel() + env := newTestEnv(t) + node := newTestNode(t, env) + node.StartDaemon() + node.AwaitResponding() + node.MustUp() + node.AwaitIP() + node.AwaitRunning() + + log.Printf("running logout CLI") + if err := node.Tailscale("logout", "--async").Run(); err != nil { + t.Fatalf("logout: %v", err) + } + node.AwaitNeedsLogin() +} + // testEnv contains the test environment (set of servers) used by one // or more nodes. type testEnv struct { |
