summaryrefslogtreecommitdiff
path: root/test/yaml
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-28 23:01:53 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-29 11:41:10 +0900
commit9eae8cdefba61e9e51feb30a4b98525593169666 (patch)
treeb54d8502f7e7733e48c798e517f7676bf0395a51 /test/yaml
parent983c9ad3f197ab8612c08ea894765b43ed089749 (diff)
Prefer qualified names under Thread
Diffstat (limited to 'test/yaml')
-rw-r--r--test/yaml/test_store.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/yaml/test_store.rb b/test/yaml/test_store.rb
index 9112c569a3..ef8d3229c1 100644
--- a/test/yaml/test_store.rb
+++ b/test/yaml/test_store.rb
@@ -75,7 +75,7 @@ class YAMLStoreTest < Test::Unit::TestCase
end
def test_thread_safe
- q1 = Queue.new
+ q1 = Thread::Queue.new
assert_raise(PStore::Error) do
th = Thread.new do
@yaml_store.transaction do
@@ -92,7 +92,7 @@ class YAMLStoreTest < Test::Unit::TestCase
th.join
end
end
- q2 = Queue.new
+ q2 = Thread::Queue.new
begin
yaml_store = YAML::Store.new(second_file, true)
cur = Thread.current