mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
use assert_equal, assert_match, and so on.
* test/fileutils/fileasserts.rb: use assert_equal, assert_match, and so on. * test/ruby/enc/test_utf16.rb, test/ruby/enc/test_utf32.rb, test/ruby/test_io_m17n.rb (assert_str_equal): ditto. * test/rubygems/test_gem_remote_fetcher.rb (assert_data_from_{server,proxy}): ditto. * test/test_pstore.rb (test_thread_safe): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b5ba059a0b
commit
298258891d
8 changed files with 46 additions and 69 deletions
|
@ -84,10 +84,10 @@ class PStoreTest < Test::Unit::TestCase
|
|||
sleep 1
|
||||
end
|
||||
end
|
||||
until flag; end
|
||||
sleep 0.1 until flag
|
||||
@pstore.transaction {}
|
||||
end
|
||||
assert_block do
|
||||
begin
|
||||
pstore = PStore.new(second_file, true)
|
||||
flag = false
|
||||
Thread.new do
|
||||
|
@ -97,8 +97,8 @@ class PStoreTest < Test::Unit::TestCase
|
|||
sleep 1
|
||||
end
|
||||
end
|
||||
until flag; end
|
||||
pstore.transaction { pstore[:foo] == "bar" }
|
||||
sleep 0.1 until flag
|
||||
assert_equal("bar", pstore.transaction { pstore[:foo] })
|
||||
end
|
||||
ensure
|
||||
File.unlink(second_file) rescue nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue