ipn/ipnlocal: rename LogoutSync to Logout

Updates #cleanup

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali
2023-08-31 19:11:20 -07:00
committed by Maisem Ali
parent f52273767f
commit 96277b63ff
4 changed files with 9 additions and 7 deletions

View File

@@ -580,7 +580,7 @@ func TestStateMachine(t *testing.T) {
store.awaitWrite()
t.Logf("\n\nLogout")
notifies.expect(5)
b.LogoutSync(context.Background())
b.Logout(context.Background())
{
nn := notifies.drain(5)
previousCC.assertCalls("pause", "Logout", "unpause", "Shutdown")
@@ -610,7 +610,7 @@ func TestStateMachine(t *testing.T) {
// A second logout should be a no-op as we are in the NeedsLogin state.
t.Logf("\n\nLogout2")
notifies.expect(0)
b.LogoutSync(context.Background())
b.Logout(context.Background())
{
notifies.drain(0)
cc.assertCalls()
@@ -623,7 +623,7 @@ func TestStateMachine(t *testing.T) {
// AuthCantContinue state.
t.Logf("\n\nLogout3")
notifies.expect(3)
b.LogoutSync(context.Background())
b.Logout(context.Background())
{
notifies.drain(0)
cc.assertCalls()