mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-16 18:41:03 +01:00
Increase sleep time to make tests reliably pass even with async queries
This commit is contained in:
parent
4e93727dd0
commit
9b37cb6db1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user