Skip to content

Commit 1e9930a

Browse files
committed
test: authorisation, in the prose at least
Three failure messages said authorization. The header, the OAuth endpoints and the fake's `authorized` helper keep the spelling their specs and identifiers give them. beep boop
1 parent 2a74ebf commit 1e9930a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

internal/cmd/cmd_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func testBrowserLoginFlow(t *testing.T, prefix []string) {
178178
time.Sleep(10 * time.Millisecond)
179179
}
180180
if q == nil {
181-
t.Fatalf("login never printed an authorization URL; output: %q", out.String())
181+
t.Fatalf("login never printed an authorisation URL; output: %q", out.String())
182182
}
183183
if _, err := http.Get(q.Get("redirect_uri") + "?code=c&state=" + url.QueryEscape(q.Get("state"))); err != nil {
184184
t.Fatal(err)
@@ -383,7 +383,7 @@ func TestBrowserLoginWithoutTTYNeverOpensBrowser(t *testing.T) {
383383
time.Sleep(10 * time.Millisecond)
384384
}
385385
if q == nil {
386-
t.Fatalf("no authorization URL printed; output: %q", out.String())
386+
t.Fatalf("no authorisation URL printed; output: %q", out.String())
387387
}
388388
if _, err := http.Get(q.Get("redirect_uri") + "?code=c&state=" + url.QueryEscape(q.Get("state"))); err != nil {
389389
t.Fatal(err)
@@ -447,7 +447,7 @@ func TestBrowserLoginNotBlockedByYes(t *testing.T) {
447447
time.Sleep(10 * time.Millisecond)
448448
}
449449
if q == nil {
450-
t.Fatalf("--yes must not refuse login; no authorization URL printed; output: %q", out.String())
450+
t.Fatalf("--yes must not refuse login; no authorisation URL printed; output: %q", out.String())
451451
}
452452
if _, err := http.Get(q.Get("redirect_uri") + "?code=c&state=" + url.QueryEscape(q.Get("state"))); err != nil {
453453
t.Fatal(err)

0 commit comments

Comments
 (0)