Split the timestamp format test on is_action

This commit is contained in:
David Dworken
2022-11-12 06:39:51 -08:00
parent e3a793c753
commit e485dfdaf6
2 changed files with 35 additions and 1 deletions

View File

@ -2138,7 +2138,11 @@ func TestTimestampFormat(t *testing.T) {
compareGoldens(t, out, "TestTimestampFormat-query")
out = captureTerminalOutput(t, tester, []string{"hishtory SPACE tquery SPACE -pipefail SPACE -tablesizing ENTER"})
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
compareGoldens(t, out, "TestTimestampFormat-tquery")
goldenName := "TestTimestampFormat-tquery"
if os.Getenv("GITHUB_ACTION") != "" {
goldenName += "-isAction"
}
compareGoldens(t, out, goldenName)
}
func TestRemoveDuplicateRows(t *testing.T) {