mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-27 07:22:29 +02:00
Fix broken test from version change
This commit is contained in:
parent
0fba532ec3
commit
5c508e7cfc
@ -372,7 +372,7 @@ func TestUpdate(t *testing.T) {
|
|||||||
|
|
||||||
// Then check the status command again to confirm the update worked
|
// Then check the status command again to confirm the update worked
|
||||||
out = RunInteractiveBashCommands(t, `hishtory status`)
|
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)
|
t.Fatalf("status command has unexpected output: %#v", out)
|
||||||
}
|
}
|
||||||
if strings.Contains(out, "\nCommit Hash: Unknown\n") {
|
if strings.Contains(out, "\nCommit Hash: Unknown\n") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user