blob: 80bc097e452077c3988c09ef784da15617683bdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- ttytest-0.5.0/test/ttytest/terminal_test.rb
+++ ttytest-0.5.0_p/test/ttytest/terminal_test.rb
@@ -4,6 +4,9 @@
class TerminalTest < Minitest::Test
def test_shell_hello_world
@tty = TTYtest.new_terminal(%{PS1='$ ' /bin/sh})
+ # Give tmux some time to settle
+ # (see https://github.com/jhawthorn/ttytest/issues/2):
+ sleep(0.5)
@tty.assert_row(0, '$')
@tty.send_keys('echo "Hello, world"')
@tty.assert_row(0, '$ echo "Hello, world"')
|