diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/io/console/test_io_console.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index 972525043c..ba9063e1b3 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -185,7 +185,8 @@ class TestIO_Console < Test::Unit::TestCase run_pty("p IO.console.getpass('> ')") do |r, w| assert_equal("> ", r.readpartial(10)) w.print "asdf\n" - assert_include(r.gets, "\n") + sleep 1 + assert_equal("\r\n", r.gets) assert_equal("\"asdf\"", r.gets.chomp) end end |