Skip to content

Instantly share code, notes, and snippets.

@GrooveStomp
Created July 22, 2014 18:02
Show Gist options
  • Save GrooveStomp/5051eb0dbe366e33e58b to your computer and use it in GitHub Desktop.
Save GrooveStomp/5051eb0dbe366e33e58b to your computer and use it in GitHub Desktop.
concurrent-ruby spec run
↳ rspec spec
No DRb server is running. Running in local process instead ...
Compiled extensions not installed, pure Ruby Atomic will be used.
...............................................................................................................................................................................................................................................................................................................................
................................................................................................................*..............................................................................................................................................................................................................
........................................................................................................................................................................................................................................................................................................................F..F...
.............................................................................................................................................................................................F.................................................................................................................................
.........................
Pending:
Concurrent::Agent clojure-like behaviour waits with sending functions to other agents until update is done
# Not yet implemented
# ./spec/concurrent/agent_spec.rb:436
Failures:
1) Concurrent::RubyThreadPoolExecutor#overload_policy :caller_runs #post does not create any new threads when the queue is at capacity
Failure/Error: expect(Thread.list.length).to be < initial + 5
expected: < 8
got: 387
# ./spec/concurrent/executor/ruby_thread_pool_executor_spec.rb:154:in `block (4 levels) in <module:Concurrent>'
2) Concurrent::Atomic inherits from CAtomic
Failure/Error: expect(Atomic.ancestors).to include(CAtomic)
NameError:
uninitialized constant Concurrent::CAtomic
# ./spec/concurrent/atomic_spec.rb:157:in `block (2 levels) in <module:Concurrent>'
3) #timeout kills the thread on timeout
Failure/Error: expect(Thread).to receive(:kill).with(any_args())
(<Thread (class)>).kill(any args)
expected: 1 time with any arguments
received: 2603 times with any arguments
# ./spec/concurrent/utility/timeout_spec.rb:37:in `block (2 levels) in <module:Concurrent>'
Finished in 2 minutes 49.2 seconds (files took 0.54134 seconds to load)
1301 examples, 3 failures, 1 pending
Failed examples:
rspec ./spec/concurrent/executor/ruby_thread_pool_executor_spec.rb:151 # Concurrent::RubyThreadPoolExecutor#overload_policy :caller_runs #post does not create any new threads when the queue is at capacity
rspec ./spec/concurrent/atomic_spec.rb:156 # Concurrent::Atomic inherits from CAtomic
rspec ./spec/concurrent/utility/timeout_spec.rb:36 # #timeout kills the thread on timeout
Randomized with seed 45032
Coverage report generated for RSpec to /home/aoman/code/concurrent-ruby/coverage. 2374 / 2601 LOC (91.27%) covered.
[Coveralls] Outside the Travis environment, not sending data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment