diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/dbm/test_dbm.rb | 8 | ||||
-rw-r--r-- | test/xmlrpc/webrick_testing.rb | 4 |
2 files changed, 2 insertions, 10 deletions
diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb index 0a604e50e5..cec2b20f91 100644 --- a/test/dbm/test_dbm.rb +++ b/test/dbm/test_dbm.rb @@ -86,14 +86,6 @@ if defined? DBM assert_equal(DBM.open("tmptest_dbm") { :foo }, :foo) end - def test_s_open_error - assert_instance_of(DBM, dbm = DBM.open("tmptest_dbm", 0)) - assert_raise(Errno::EACCES, "NEVER MIND IF YOU USE Berkeley DB3") { - DBM.open("tmptest_dbm", 0) - } - dbm.close - end - def test_close assert_instance_of(DBM, dbm = DBM.open("tmptest_dbm")) assert_nil(dbm.close) diff --git a/test/xmlrpc/webrick_testing.rb b/test/xmlrpc/webrick_testing.rb index a6830cece1..eb054a77e7 100644 --- a/test/xmlrpc/webrick_testing.rb +++ b/test/xmlrpc/webrick_testing.rb @@ -23,14 +23,14 @@ module WEBrick_Testing } Timeout.timeout(5) { - nil until @__started # wait until the server is ready + Thread.pass until @__started # wait until the server is ready } end def stop_server Timeout.timeout(5) { @__server.shutdown - nil while @__started # wait until the server is down + Thread.pass while @__started # wait until the server is down } @__server = nil end |