aboutsummaryrefslogtreecommitdiff
path: root/tests/cli/cli_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2023-12-11 21:01:10 +0100
committerJakob Unterwurzacher2023-12-11 21:01:10 +0100
commit6fbe61d11017051b035cebe00b66481203a2a036 (patch)
tree07af7d588f3d1123444be15d9bfffa2c8333a7a5 /tests/cli/cli_test.go
parent15118e6e5392d50fc265d4acbf8c264279c66af1 (diff)
tests: TestMountPasswordIncorrect: better error on wrong exit code
Report that exit code is wrong when the exit code is wrong.
Diffstat (limited to 'tests/cli/cli_test.go')
-rw-r--r--tests/cli/cli_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cli/cli_test.go b/tests/cli/cli_test.go
index bbaca51..94a8b16 100644
--- a/tests/cli/cli_test.go
+++ b/tests/cli/cli_test.go
@@ -407,7 +407,7 @@ func TestMountPasswordIncorrect(t *testing.T) {
err := test_helpers.Mount(cDir, pDir, false, "-extpass", "echo WRONG", "-wpanic=false", "-ctlsock", ctlSock)
exitCode := test_helpers.ExtractCmdExitCode(err)
if exitCode != exitcodes.PasswordIncorrect {
- t.Errorf("want=%d, got=%d", exitcodes.PasswordIncorrect, exitCode)
+ t.Errorf("wrong exit code: want=%d, have=%d", exitcodes.PasswordIncorrect, exitCode)
}
if _, err := os.Stat(ctlSock); err == nil {
t.Errorf("socket file %q left behind", ctlSock)