Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (25 sloc) 0.671 kB
require_relative 'helpers'
class QuickRun < IWNGTest
N_TASKS = 50
def setup
super
client.codes.create code_bundle(:name => 'test',
:exec => File.join(File.dirname(__FILE__), 'hello.rb'))
end
def test_quick_run2
task_ids = []
N_TASKS.times do |i|
puts "#{i}"
task_ids << client.tasks.create('test', {:foo=>"bar"}, {:priority=>2}).id
end
task_ids.each_with_index do |id, i|
puts "#{i}"
task = client.tasks.wait_for(id)
p task
assert_equal 'complete', task.status
log = client.tasks.log(id)
puts log
assert_equal "hello\n", log
end
end
end
Jump to Line
Something went wrong with that request. Please try again.