Skip to content

Commit

Permalink
Alter new upstream test for Fiber storage
Browse files Browse the repository at this point in the history
* Remove the 3.2.3 lower bound, this spec fails on Ruby 3.2.0-3.2.2 (this file
  does not run on Ruby 3.1 and below)
* Run the test inside a new Fiber, we do not want to clutter the Fiber running
  the specs with additional keys.
  • Loading branch information
herwinw committed Dec 31, 2024
1 parent 98b8557 commit b1431f9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/fiber/storage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,11 @@
end
end

ruby_bug "#20978", "3.2.3"..."3.4" do
ruby_bug "#20978", ""..."3.4" do
it "can use keys as strings" do
key = Object.new
def key.to_str; "Foo"; end
Fiber[key] = 42
Fiber["Foo"].should == 42
Fiber.new { Fiber[key] = 42; Fiber["Foo"] }.resume.should == 42
end
end

Expand Down

0 comments on commit b1431f9

Please sign in to comment.