Skip to content

Commit 0067001

Browse files
committed
Skip flaky tests on truffleruby
1 parent 6c1b549 commit 0067001

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

spec/concurrent/channel/buffer/unbuffered_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ module Concurrent::Channel::Buffer
232232
end
233233

234234
it 'returns Concurrent::NULL, false when closed and no items remain' do
235+
skip('flaky on truffleruby') if Concurrent.on_truffleruby?
236+
235237
t = in_thread do
236238
subject.put(:foo)
237239
end

spec/concurrent/dataflow_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ module Concurrent
1818
end
1919

2020
specify '#dataflow_with uses the given executor' do
21+
skip('flaky on truffleruby') if Concurrent.on_truffleruby?
22+
2123
input = Future.execute{0}
2224
result = Future.new{0}
2325

spec/concurrent/edge/erlang_actor_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,8 @@
917917
end
918918

919919
specify "timing out" do
920+
skip('flaky on truffleruby') if Concurrent.on_truffleruby?
921+
920922
count_down = Concurrent::CountDownLatch.new
921923
body = { on_thread: -> { m = receive; count_down.wait; reply m },
922924
on_pool: -> { receive { |m| count_down.wait; reply m } } }

spec/concurrent/throttle_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
RSpec.describe 'Concurrent' do
55
describe 'Throttle' do
66
specify 'acquiring' do
7+
skip('flaky on truffleruby') if Concurrent.on_truffleruby?
8+
79
throttle = Concurrent::Throttle.new 2
810
expect(throttle.max_capacity).to eq 2
911
expect(throttle.available_capacity).to eq 2

0 commit comments

Comments
 (0)