From 6fbe61d11017051b035cebe00b66481203a2a036 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 11 Dec 2023 21:01:10 +0100 Subject: tests: TestMountPasswordIncorrect: better error on wrong exit code Report that exit code is wrong when the exit code is wrong. --- tests/cli/cli_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3