Permalink
Browse files

Unify rspec tags

  • Loading branch information...
pitr-ch committed May 17, 2018
1 parent 401b3de commit 366d6aa5cfd660022d80fd8e39cc2f80e643d548
@@ -181,9 +181,7 @@ begin
--backtrace
--seed 1
--format documentation
--tag ~unfinished
--tag ~notravis
--tag ~buggy ]
--tag ~notravis ]
RSpec::Core::RakeTask.new(:travis) do |t|
t.rspec_opts = ['--color', *options].join(' ')
@@ -148,7 +148,7 @@ def on_message(message)
end
end
it 'terminates with all its children', buggy: true do
it 'terminates with all its children', notravis: true do
child = subject.ask! :child
expect(subject.ask!(:terminated?)).to be_falsey
subject.ask(:terminate!).wait
@@ -313,7 +313,7 @@ def on_message(message)
end
describe 'pool' do
it 'supports asks', buggy: true do
it 'supports asks', notravis: true do
children = Queue.new
pool = Concurrent::Actor::Utils::Pool.spawn! 'pool', 5 do |index|
worker = Concurrent::Actor::Utils::AdHoc.spawn! name: "worker-#{index}", supervised: true do
@@ -937,7 +937,7 @@ def update(time, old_value, new_value)
expect(subject.await_for(0.1)).to be true
end
it 'returns true when all prior actions have processed', buggy: true do
it 'returns true when all prior actions have processed', notravis: true do
subject = Agent.new(0)
subject.send_via(executor) { sleep(1) }
5.times { subject.send_via(executor) { nil } }
@@ -56,7 +56,7 @@ module Concurrent
end
describe 'reset' do
it 'should release all waiting threads', buggy: true do
it 'should release all waiting threads', notravis: true do
start_latch = CountDownLatch.new(1)
continue_latch = CountDownLatch.new(1)
@@ -120,7 +120,7 @@ module Concurrent
expect(latch.wait(1)).to be_truthy
end
it 'return false if barrier has been reset', buggy: true do
it 'return false if barrier has been reset', notravis: true do
latch = CountDownLatch.new(1)
t = in_thread { latch.count_down if barrier.wait == false }
@@ -163,7 +163,7 @@ def subject.simulate_spurious_wake_up
expect(latch.wait(0.1)).to be false
end
it 'should resist spurious wake ups with timeout', buggy: true do
it 'should resist spurious wake ups with timeout', notravis: true do
latch = CountDownLatch.new(1)
t = in_thread{ subject.wait(0.5); latch.count_down }
t.join(0.1)
@@ -260,7 +260,7 @@ def wait_up_to(secs, &condition)
end
end
it "wakes up waiting readers when the write lock is released", buggy: true do
it "wakes up waiting readers when the write lock is released", notravis: true do
latch1,latch2 = CountDownLatch.new,CountDownLatch.new
good = AtomicFixnum.new(0)
threads = [
@@ -1,6 +1,6 @@
module Concurrent
RSpec.describe Channel, edge: true, buggy: true do
RSpec.describe Channel, edge: true, notravis: true do
context 'initialization' do
@@ -510,7 +510,7 @@ module Concurrent
context '#poll?' do
it 'returns a just Maybe immediately if available', buggy: true do
it 'returns a just Maybe immediately if available', notravis: true do
subject # initialize on this thread
t = in_thread do
subject.put(42)
@@ -19,7 +19,7 @@
expect(subject.add 'test string1').to be true
end
context 'in a multi-threaded environment', buggy: true do
context 'in a multi-threaded environment', notravis: true do
it 'adds the items to the set' do
to_insert = %w(one two three four five six)
@@ -85,7 +85,7 @@
end
end
context 'in a multi-threaded environment', buggy: true do
context 'in a multi-threaded environment', notravis: true do
it 'correctly check that the set contains the item' do
to_insert = %w(one two three four five six)
to_insert.each { |item| subject << item }
@@ -127,7 +127,7 @@
end
end
context 'in a multi-threaded environment', buggy: true do
context 'in a multi-threaded environment', notravis: true do
it 'adds the items to the set' do
to_insert = %w(one two three four five six)
@@ -122,7 +122,7 @@
expect(get_value(second_value)).to eq :foo
end
it 'allows multiple firsts to cancel if necessary', buggy: true do
it 'allows multiple firsts to cancel if necessary', notravis: true do
first_value = nil
second_value = nil
cancels = 3
@@ -387,7 +387,7 @@ def m.simulate_spurious_wake_up
expect(m.put(14)).to eq 14
end
it 'returns TIMEOUT on timeout on a full MVar', buggy: true do
it 'returns TIMEOUT on timeout on a full MVar', notravis: true do
# TODO (pitr-ch 15-Oct-2016): fails on jruby
result = nil
in_thread { result = m.put(14, 0.3) }
@@ -55,7 +55,7 @@ then
cd ..
# TODO (pitr-ch 17-Dec-2016): dry: duplicates rake task
rspec_options='--color --backtrace --seed 1 --format documentation --tag ~unfinished --tag ~notravis --tag ~buggy'
rspec_options='--color --backtrace --seed 1 --format documentation --tag ~notravis'
# Install and test MRI version
export RBENV_VERSION=$mriVersion

0 comments on commit 366d6aa

Please sign in to comment.