test/scout/work_queue/test_socket.rb in scout-gear-10.4.0 vs test/scout/work_queue/test_socket.rb in scout-gear-10.7.0
- old
+ new
@@ -1,9 +1,12 @@
require File.expand_path(__FILE__).sub(%r(/test/.*), '/test/test_helper.rb')
require File.expand_path(__FILE__).sub(%r(.*/test/), '').sub(/test_(.*)\.rb/,'\1')
class TestSocket < Test::Unit::TestCase
+
+ class DoneProcessing end
+
def test_simple
socket = WorkQueue::Socket.new
socket.write 1
socket.write 2
@@ -22,10 +25,10 @@
end
def __test_speed
socket = WorkQueue::Socket.new
- num = 10_000
+ num = 50_000
Thread.new do
num.times do |i|
socket.write nil
end