Skip to content

Commit 912ba5c

Browse files
authored
fix: remove trailing period in error message test (#1153)
1 parent bd4f568 commit 912ba5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/src/login_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func TestLogin(t *testing.T) {
6767
if err != cmderrors.ExitCode1 {
6868
t.Fatal(err)
6969
}
70-
wantOut := "❌ Problem: Invalid access token.\n\n🛠 To fix: Create an access token by going to $ENDPOINT/user/settings/tokens, then set the following environment variables in your terminal:\n\n export SRC_ENDPOINT=$ENDPOINT\n export SRC_ACCESS_TOKEN=(your access token)\n\n To verify that it's working, run the login command again.\n\n (If you need to supply custom HTTP request headers, see information about SRC_HEADER_* and SRC_HEADERS env vars at https://github.com/sourcegraph/src-cli/blob/main/AUTH_PROXY.md.)"
70+
wantOut := "❌ Problem: Invalid access token.\n\n🛠 To fix: Create an access token by going to $ENDPOINT/user/settings/tokens, then set the following environment variables in your terminal:\n\n export SRC_ENDPOINT=$ENDPOINT\n export SRC_ACCESS_TOKEN=(your access token)\n\n To verify that it's working, run the login command again.\n\n (If you need to supply custom HTTP request headers, see information about SRC_HEADER_* and SRC_HEADERS env vars at https://github.com/sourcegraph/src-cli/blob/main/AUTH_PROXY.md)"
7171
wantOut = strings.ReplaceAll(wantOut, "$ENDPOINT", endpoint)
7272
if out != wantOut {
7373
t.Errorf("got output %q, want %q", out, wantOut)

0 commit comments

Comments
 (0)