Skip to content

Commit fa49616

Browse files
committed
Fiber#kill doesn't exist until Ruby 3.3
1 parent d66f1ee commit fa49616

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/sidekiq/cloudwatchmetrics_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@
8282
expect(fiber.resume).to eql(:sleep)
8383
expect(fiber.resume).to eql(:publish)
8484
expect(fiber.resume).to eql(:sleep)
85-
fiber.kill
85+
86+
publisher.stop
87+
fiber.resume
88+
expect(fiber).not_to be_alive
8689
end
8790
end
8891

0 commit comments

Comments
 (0)