Increase sleep time to make tests reliably pass even with async queries

This commit is contained in:
David Dworken 2023-08-27 18:36:08 -07:00
parent 4e93727dd0
commit 9b37cb6db1
No known key found for this signature in database

View File

@ -1990,17 +1990,7 @@ func captureTerminalOutputWithShellName(t *testing.T, tester shellTester, overri
}
func captureTerminalOutputWithShellNameAndDimensions(t *testing.T, tester shellTester, overriddenShellName string, width, height int, commands []TmuxCommand) string {
sleepAmount := "0.1"
if runtime.GOOS == "linux" {
sleepAmount = "0.2"
}
if overriddenShellName == "fish" {
// Fish is considerably slower so this is sadly necessary
sleepAmount = "0.5"
}
if testutils.IsGithubAction() && runtime.GOOS == "darwin" {
sleepAmount = "0.5"
}
sleepAmount := "0.5"
fullCommand := ""
fullCommand += " tmux kill-session -t foo || true\n"
fullCommand += fmt.Sprintf(" tmux -u new-session -d -x %d -y %d -s foo %s\n", width, height, overriddenShellName)