Tweak ImportHistory so that all entries are guaranteed to have sequential timestamps that are monotonically increasing

This commit is contained in:
David Dworken
2023-10-07 11:05:19 -07:00
parent 1593caa90f
commit f5264b6eff
2 changed files with 7 additions and 3 deletions

View File

@ -2489,7 +2489,8 @@ func TestImportHistory(t *testing.T) {
require.Equal(t, "305", out)
out = tester.RunInteractiveShell(t, ` hishtory export -pipefail`)
require.Contains(t, out, "echo command-305")
out = tester.RunInteractiveShell(t, ` hishtory export -pipefail`)
testutils.CompareGoldens(t, out, "TestImportHistory-export")
// TODO: There is a bug here that will be evident if you check that the export is in the correct order on the remote device, because timestamps don't have sufficient granularity
}