summaryrefslogtreecommitdiff
path: root/test/io/console/test_io_console.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/io/console/test_io_console.rb')
-rw-r--r--test/io/console/test_io_console.rb3
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 972525043cb..ba9063e1b33 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