Sha256: e3f5c50da026645019e6dd0b3dbe7ed8504ba8ae4c40139aea8ce97ea5e80169
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 Bytes
Contents
$VERBOSE = true $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) if $0 == __FILE__ require 'rubygems' require 'minitest/autorun' require 'proco' class TestWorker < MiniTest::Unit::TestCase def test_worker w = Proco::MT::Worker.new nil cnt = 0 w.assign { sleep 0.1; cnt += 1 } w.assign { sleep 0.1; cnt += 1 } w.assign { sleep 0.1; cnt += 1 } # Async assert_equal 1, cnt sleep 0.2; w.exit assert_equal 3, cnt end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
proco-0.0.2 | test/test_worker.rb |
proco-0.0.1 | test/test_worker.rb |