diff --git a/internal/cmd/setup_test.go b/internal/cmd/setup_test.go index 510e1291..898d4f59 100644 --- a/internal/cmd/setup_test.go +++ b/internal/cmd/setup_test.go @@ -172,6 +172,9 @@ func TestSetupSilentSuccessShowsSpinnerAndCompletion(t *testing.T) { func TestSetupSilentSuccessKeepsSignInInstructions(t *testing.T) { stubStdinTerminal(t) t.Setenv("HEY_NONINTERACTIVE", "") + // Without this the manager consults the developer's real keyring, sees them + // signed in, and skips the stubbed login this test exists to observe. + t.Setenv("HEY_NO_KEYRING", "1") previousAuthMgr := authMgr authMgr = auth.NewManager("http://app.hey.localhost:3003", http.DefaultClient, t.TempDir()) t.Cleanup(func() { authMgr = previousAuthMgr })