From 5c508e7cfc3268456ff9f54eef637c1094ef6087 Mon Sep 17 00:00:00 2001 From: David Dworken Date: Sat, 9 Apr 2022 14:48:17 -0700 Subject: [PATCH] Fix broken test from version change --- client/client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client_test.go b/client/client_test.go index 834e106..f3716f6 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -372,7 +372,7 @@ func TestUpdate(t *testing.T) { // Then check the status command again to confirm the update worked out = RunInteractiveBashCommands(t, `hishtory status`) - if !strings.HasPrefix(out, fmt.Sprintf("Hishtory: v0.Unknown\nEnabled: true\nSecret Key: %s\nCommit Hash: ", userSecret)) { + if !strings.Contains(out, fmt.Sprintf("\nEnabled: true\nSecret Key: %s\nCommit Hash: ", userSecret)) { t.Fatalf("status command has unexpected output: %#v", out) } if strings.Contains(out, "\nCommit Hash: Unknown\n") {