seattlerb/rake-remote_task — Issue #9: Test failure with real threads due to concurrent modification
Author: dekellum
Created: 2011-12-28 20:17:54+00:00
State: open

On jruby and multi-core host:

~~~
% jruby -v
jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) Server VM 1.7.0_02) [linux-i386-java]
~~~

I'm seeing this test failure consistently:

~~~
Run options: --seed 46401

# Running tests:

.......F...........

Finished tests in 0.200000s, 95.0000 tests/s, 275.0000 assertions/s.

1) Failure:
test_execute(TestRakeRemoteTask) [./test/test_rake_remote_task.rb:30]:
Expected: 7
Actual: 6

19 tests, 55 assertions, 1 failures, 0 errors, 0 skips
~~~

What am I doing with jruby you ask? I am trying to make rake-remote_task work on it.

However, other real-threaded rubies might have the same problem.