Fix failing lib_test + add test for displaying the correct cwd in the table

This commit is contained in:
David Dworken
2022-04-18 22:45:07 -07:00
parent 76f12ab64a
commit d6a142dfe7
2 changed files with 32 additions and 1 deletions

View File

@ -37,7 +37,7 @@ func TestBuildHistoryEntry(t *testing.T) {
shared.Check(t, Setup([]string{}))
// Test building an actual entry for bash
entry, err := BuildHistoryEntry([]string{"unused", "saveHistoryEntry", "bash", "120", " 123 ls /foo ", "1641774958326745663"})
entry, err := BuildHistoryEntry([]string{"unused", "saveHistoryEntry", "bash", "120", " 123 ls /foo ", "1641774958"})
shared.Check(t, err)
if entry.ExitCode != 120 {
t.Fatalf("history entry has unexpected exit code: %v", entry.ExitCode)