diff --git a/cmd/download_test.go b/cmd/download_test.go index b297e4be9..fb18cfc86 100644 --- a/cmd/download_test.go +++ b/cmd/download_test.go @@ -26,7 +26,7 @@ func TestDownloadWithoutToken(t *testing.T) { if assert.Error(t, err) { assert.Regexp(t, "Welcome to Exercism", err.Error()) // It uses the default base API url to infer the host - assert.Regexp(t, "exercism.org/my/settings", err.Error()) + assert.Regexp(t, "exercism.org/settings", err.Error()) } } diff --git a/cmd/submit_test.go b/cmd/submit_test.go index 4e1349953..38caf9d93 100644 --- a/cmd/submit_test.go +++ b/cmd/submit_test.go @@ -28,7 +28,7 @@ func TestSubmitWithoutToken(t *testing.T) { err := runSubmit(cfg, pflag.NewFlagSet("fake", pflag.PanicOnError), []string{}) if assert.Error(t, err) { assert.Regexp(t, "Welcome to Exercism", err.Error()) - assert.Regexp(t, "exercism.org/my/settings", err.Error()) + assert.Regexp(t, "exercism.org/settings", err.Error()) } } diff --git a/config/config.go b/config/config.go index d52e3fd97..f16b2b6ce 100644 --- a/config/config.go +++ b/config/config.go @@ -130,5 +130,5 @@ func InferSiteURL(apiURL string) string { // TokenURL provides a link to where the user can find their API token. func TokenURL(apiURL string) string { - return fmt.Sprintf("%s%s", InferSiteURL(apiURL), "/my/settings/api_cli") + return fmt.Sprintf("%s%s", InferSiteURL(apiURL), "/settings/api_cli") }