Permalink
Browse files

Syncing tests.

  • Loading branch information...
1 parent 8502f4c commit 90335608879877ef703997e8fc998b2a432d9511 Andrew Kirilenko committed Sep 27, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 test/test_retry.rb
  2. +2 −2 test/test_ruby_runner.rb
View
@@ -5,7 +5,7 @@ class RetryTest < IWNGTest
def test_retry
code = IronWorkerNG::Code::Base.new do
name 'hello'
- exec 'hello.rb'
+ exec 'test/hello.rb'
end
client.codes.create(code)
@@ -29,7 +29,7 @@ def test_auto_retry
retries_delay = 5
client.codes.create(code_bundle(:name => name,
- :exec => 'workers/fail_worker.rb'),
+ :exec => 'test/workers/fail_worker.rb'),
:retries => retries,
:retries_delay => retries_delay)
View
@@ -5,7 +5,7 @@ class RubyRunnerTest < IWNGTest
def test_script
code = code_bundle :exec => 'test/workers/ruby_runner_test_script.rb'
client.codes_create(code)
- task_id = client.tasks_create('RubyRunnerTestScript',
+ task_id = client.tasks_create('ruby_runner_test_script',
:a => 1, :b => 2).id
client.tasks_wait_for(task_id)
resp = JSON.parse client.tasks_log(task_id)
@@ -29,7 +29,7 @@ def test_class
exec 'test/workers/ruby_runner_test_class.rb', 'RubyWorker'
end
client.codes_create(code)
- task_id = client.tasks_create('RubyRunnerTestClass',
+ task_id = client.tasks_create('ruby_runner_test_class',
:a => 1, :b => 2).id
client.tasks_wait_for(task_id)

0 comments on commit 9033560

Please sign in to comment.