Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions internal/cmd/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down
Loading