mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_io_console.rb: wait
* test/io/console/test_io_console.rb (test_getpass): wait slave thread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a2e025a7d0
commit
51cb462f42
1 changed files with 2 additions and 1 deletions
|
@ -189,9 +189,10 @@ class TestIO_Console < Test::Unit::TestCase
|
|||
}
|
||||
assert_equal("asdf", m.getpass("> "))
|
||||
assert_equal("\n", s.readpartial(2))
|
||||
th.join
|
||||
}
|
||||
ensure
|
||||
th.join
|
||||
th.join rescue nil
|
||||
end
|
||||
|
||||
def test_iflush
|
||||
|
|
Loading…
Add table
Reference in a new issue