1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-20 09:45:12 +03:00
aports/testing/ruby-ttytest/fix-flaky-test.patch
Eivind Uggedal 34946f61ea testing/ruby-ttytest: new aport
Required to run fzy's acceptance tests
2019-06-05 20:28:49 +00:00

12 lines
487 B
Diff

--- 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"')