From 17e43bcada25c22f459827851faa34f8f4df3d33 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 9 May 2021 12:39:30 +0200 Subject: [PATCH] changes: tests: remove output for dry-run commands Commands during a dry-run have no output. Don't use incorrect test input. --- cmd/safcm/sync_changes_test.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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", }, { -- 2.43.2