diff options
author | Jakob Unterwurzacher | 2023-12-11 21:01:10 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2023-12-11 21:01:10 +0100 |
commit | 6fbe61d11017051b035cebe00b66481203a2a036 (patch) | |
tree | 07af7d588f3d1123444be15d9bfffa2c8333a7a5 | |
parent | 15118e6e5392d50fc265d4acbf8c264279c66af1 (diff) |
tests: TestMountPasswordIncorrect: better error on wrong exit code
Report that exit code is wrong when the
exit code is wrong.
-rw-r--r-- | tests/cli/cli_test.go | 2 |
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) |