diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-15 05:34:20 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-15 05:34:20 +0000 |
commit | 0efd8bbd34117437f0e1584fe1c1f2177ed09d0d (patch) | |
tree | f5445c2977b2d75ee3e34ac5b45ce6ebc7a1001e /test/io | |
parent | b4b4b9436740997a807f59e0c979520ed4d20311 (diff) |
test/io/console/test_io_console.rb (test_oflush): Avoid race condition
Add a ad-hoc wait. Follows test_ioflush2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/io')
-rw-r--r-- | test/io/console/test_io_console.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index 764c5e1a61..1368502b04 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -212,6 +212,7 @@ defined?(PTY) and defined?(IO.console) and TestIO_Console.class_eval do s.oflush # oflush may be issued after "a" is already sent. s.print "b" s.flush + sleep 0.1 assert_include(["b", "ab"], m.readpartial(10)) } end |