diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2023-01-31 02:20:37 +0000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2023-01-31 02:20:37 +0000 |
commit | a2232e3809cba93ee8205c734ea7a9f779a7216e (patch) | |
tree | d96c92030bfe86a5183a7268361b2ec70788f73c /internal/command/twofactorrecover/twofactorrecover_test.go | |
parent | 51eab44edafd0c097e82c1a74fd379cae4869a42 (diff) | |
parent | 80f684e48eca2bf1ef2006d84f8c49bec7104344 (diff) | |
download | gitlab-shell-a2232e3809cba93ee8205c734ea7a9f779a7216e.tar.gz |
Merge branch 'feat/remove-unretryable-http' into 'main'
feat: make retryable http default client
See merge request https://gitlab.com/gitlab-org/gitlab-shell/-/merge_requests/710
Merged-by: Ash McKenzie <amckenzie@gitlab.com>
Approved-by: Oscar Tovar <otovar@gitlab.com>
Approved-by: Ash McKenzie <amckenzie@gitlab.com>
Co-authored-by: Steve Azzopardi <sazzopardi@gitlab.com>
Diffstat (limited to 'internal/command/twofactorrecover/twofactorrecover_test.go')
-rw-r--r-- | internal/command/twofactorrecover/twofactorrecover_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/command/twofactorrecover/twofactorrecover_test.go b/internal/command/twofactorrecover/twofactorrecover_test.go index 81b4dff..7e20a06 100644 --- a/internal/command/twofactorrecover/twofactorrecover_test.go +++ b/internal/command/twofactorrecover/twofactorrecover_test.go @@ -18,9 +18,7 @@ import ( "gitlab.com/gitlab-org/gitlab-shell/v14/internal/gitlabnet/twofactorrecover" ) -var ( - requests []testserver.TestRequestHandler -) +var requests []testserver.TestRequestHandler func setup(t *testing.T) { requests = []testserver.TestRequestHandler{ @@ -99,7 +97,7 @@ func TestExecute(t *testing.T) { desc: "With API fails", arguments: &commandargs.Shell{GitlabKeyId: "broken"}, answer: "yes\n", - expectedOutput: question + errorHeader + "Internal API error (500)\n", + expectedOutput: question + errorHeader + "Internal API unreachable\n", }, { desc: "With missing arguments", |