mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-09 15:09:30 +01:00
More test fixes for presaving
This commit is contained in:
parent
b2de9e1b18
commit
db685c6d70
@ -260,7 +260,9 @@ func captureTerminalOutputComplex(t testing.TB, captureConfig TmuxCaptureConfig)
|
|||||||
fullCommand += "\n"
|
fullCommand += "\n"
|
||||||
fullCommand += " tmux kill-session -t foo\n"
|
fullCommand += " tmux kill-session -t foo\n"
|
||||||
testutils.TestLog(t, "Running tmux command: "+fullCommand)
|
testutils.TestLog(t, "Running tmux command: "+fullCommand)
|
||||||
return strings.TrimSpace(captureConfig.tester.RunInteractiveShell(t, fullCommand))
|
out, err := captureConfig.tester.RunInteractiveShellRelaxed(t, fullCommand)
|
||||||
|
require.NoError(t, err)
|
||||||
|
return strings.TrimSpace(out)
|
||||||
}
|
}
|
||||||
|
|
||||||
func assertNoLeakedConnections(t testing.TB) {
|
func assertNoLeakedConnections(t testing.TB) {
|
||||||
|
Loading…
Reference in New Issue
Block a user