mirror of
https://github.com/ddworken/hishtory.git
synced 2025-01-22 22:28:51 +01:00
Re-enable update tests
This commit is contained in:
parent
16d41de4ad
commit
720fd7ee68
@ -528,7 +528,6 @@ func testUpdate(t *testing.T, tester shellTester) {
|
||||
// TODO: Once updates work for non-linux platforms, remove this
|
||||
t.Skip()
|
||||
}
|
||||
t.Skip() // TODO: currently failing because of the change in API
|
||||
|
||||
// Set up
|
||||
defer shared.BackupAndRestore(t)()
|
||||
@ -572,7 +571,7 @@ func testUpdate(t *testing.T, tester shellTester) {
|
||||
if tester.ShellName() == "bash" {
|
||||
// TODO
|
||||
out = tester.RunInteractiveShell(t, "hishtory export | grep -v pipefail | grep -v '/tmp/client install'")
|
||||
expectedOutput := "echo hello\nhishtory status\n"
|
||||
expectedOutput := "echo hello\nhishtory status\nhishtory update\nhishtory update\nhishtory status\n"
|
||||
if diff := cmp.Diff(expectedOutput, out); diff != "" {
|
||||
t.Fatalf("hishtory export mismatch (-expected +got):\n%s\nout=%#v", diff, out)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user