1
0
Fork 0
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:
nobu 2015-12-06 12:41:47 +00:00
parent a2e025a7d0
commit 51cb462f42

View file

@ -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