Fix broken test from version change

This commit is contained in:
David Dworken 2022-04-09 14:48:17 -07:00
parent 0fba532ec3
commit 5c508e7cfc

View File

@ -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") {