Skip to content

Commit 3c299b0

Browse files
committed
Addressed more intermittently failing specs.
1 parent 3ef1b1a commit 3c299b0

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

lib/concurrent/timer_task.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def initialize(opts = {}, &task)
195195
@executor = Concurrent::SafeTaskExecutor.new(task)
196196
@running = Concurrent::AtomicBoolean.new(false)
197197

198-
self.observers = CopyOnWriteObserverSet.new
198+
self.observers = CopyOnNotifyObserverSet.new
199199
end
200200

201201
# Is the executor running?

spec/concurrent/executor/per_thread_executor_spec.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ module Concurrent
77

88
subject { PerThreadExecutor.new }
99

10-
after(:all) do
11-
Concurrent.configuration.global_task_pool = PerThreadExecutor.new
12-
end
13-
1410
it_should_behave_like :global_thread_pool
1511

1612
context '#post' do

spec/concurrent/timer_task_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
require 'spec_helper'
22
require_relative 'dereferenceable_shared'
33
require_relative 'runnable_shared'
4-
#require_relative 'stoppable_shared'
54

65
module Concurrent
76

0 commit comments

Comments
 (0)