Skip to content

Commit 3b7e8a1

Browse files
steipeteveteranbv
andcommitted
test(gmail): satisfy inactive-guard lint
Co-authored-by: Henry Sowell <[email protected]>
1 parent 72fcae1 commit 3b7e8a1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

internal/cmd/api_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func TestDiscoveryGmailSendWithInactiveGuardsSkipsAccountResolution(t *testing.T
162162
flags := &RootFlags{authOperations: app.AuthOperations{
163163
OpenSecretsStore: func() (secrets.Store, error) {
164164
t.Fatal("inactive no-send entries must not trigger account resolution")
165-
return nil, nil
165+
return nil, errors.New("unexpected account resolution")
166166
},
167167
}}
168168

internal/cmd/root_more_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ func TestGmailSendDryRunWithInactiveGuardsSkipsAccountResolution(t *testing.T) {
475475
runtime := &app.Runtime{Config: store}
476476
runtime.Auth.OpenSecretsStore = func() (secrets.Store, error) {
477477
t.Fatal("inactive no-send entries must not trigger account resolution")
478-
return nil, nil
478+
return nil, errors.New("unexpected account resolution")
479479
}
480480
args := []string{"gmail", "send", "--to", "[email protected]", "--subject", "S", "--body", "B", "--dry-run"}
481481
result := executeWithTestRuntime(t, args, runtime)

0 commit comments

Comments
 (0)