summaryrefslogtreecommitdiff
path: root/internal/command/twofactorrecover/twofactorrecover_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/command/twofactorrecover/twofactorrecover_test.go')
-rw-r--r--internal/command/twofactorrecover/twofactorrecover_test.go6
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",