mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-19 11:36:47 +02: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 {
|
func captureTerminalOutputWithShellNameAndDimensions(t *testing.T, tester shellTester, overriddenShellName string, width, height int, commands []TmuxCommand) string {
|
||||||
sleepAmount := "0.1"
|
sleepAmount := "0.5"
|
||||||
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"
|
|
||||||
}
|
|
||||||
fullCommand := ""
|
fullCommand := ""
|
||||||
fullCommand += " tmux kill-session -t foo || true\n"
|
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)
|
fullCommand += fmt.Sprintf(" tmux -u new-session -d -x %d -y %d -s foo %s\n", width, height, overriddenShellName)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user