From: Simon Ruderich Date: Sun, 9 May 2021 10:39:30 +0000 (+0200) Subject: changes: tests: remove output for dry-run commands X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=17e43bcada25c22f459827851faa34f8f4df3d33;p=safcm%2Fsafcm.git changes: tests: remove output for dry-run commands Commands during a dry-run have no output. Don't use incorrect test input. --- diff --git a/cmd/safcm/sync_changes_test.go b/cmd/safcm/sync_changes_test.go index d8ce97b..febb784 100644 --- a/cmd/safcm/sync_changes_test.go +++ b/cmd/safcm/sync_changes_test.go @@ -1036,13 +1036,10 @@ func TestFormatCommandChanges(t *testing.T) { []safcm.CommandChange{ { Command: "fake command", - Output: "fake output", }, }, `executed 1 command(s): (dry-run) -"fake command": - > fake output - > \ No newline at end of file +"fake command" `, }, @@ -1054,10 +1051,9 @@ func TestFormatCommandChanges(t *testing.T) { []safcm.CommandChange{ { Command: "fake command", - Output: "fake output", }, }, - "executed 1 command(s): (dry-run)\n\x1b[36m\"fake command\"\x1b[0m:\n > fake output\n > \\ No newline at end of file\n", + "executed 1 command(s): (dry-run)\n\x1b[36m\"fake command\"\x1b[0m\n", }, {