Skip to content

Instantly share code, notes, and snippets.

@zapnap
Created January 25, 2010 23:58
Show Gist options
  • Save zapnap/286398 to your computer and use it in GitHub Desktop.
Save zapnap/286398 to your computer and use it in GitHub Desktop.
zaxxon:resque-status nap$ rake test
(in /Users/nap/dev/resque-status)
All dependencies seem to be installed.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib:lib:test" "/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/test_helper.rb" "test/test_resque-job_with_status.rb" "test/test_resque-status.rb"
/opt/local/bin/redis-server
Starting redis for testing at localhost:9736...
/opt/local/bin/redis-server
Starting redis for testing at localhost:9736...
Loaded suite /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
............EEE.......F.........EE....
Finished in 2.428377 seconds.
1) Error:
test: Resque::JobWithStatus killing a job should not persist the kill key. (TestResqueJobWithStatus):
Errno::ECONNREFUSED: Connection refused - connect(2)
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `initialize'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `new'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `connect_to'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:143:in `connect_to_server'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:192:in `call_command'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:183:in `method_missing'
/Library/Ruby/Gems/1.8/gems/redis-namespace-0.2.0/lib/redis/namespace.rb:126:in `send'
/Library/Ruby/Gems/1.8/gems/redis-namespace-0.2.0/lib/redis/namespace.rb:126:in `method_missing'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/stat.rb:371:in `write_default'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/stat.rb:15:in `initialize'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:909:in `new'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:909:in `stat'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:23:in `initialize'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/logger.rb:11:in `new'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/logger.rb:11:in `initialize'
/Users/nap/dev/resque-status/test/../lib/resque/status.rb:51:in `new'
/Users/nap/dev/resque-status/test/../lib/resque/status.rb:51:in `logger'
/Users/nap/dev/resque-status/test/../lib/resque/job_with_status.rb:115:in `logger'
/Users/nap/dev/resque-status/test/../lib/resque/job_with_status.rb:105:in `safe_perform!'
/Users/nap/dev/resque-status/test/../lib/resque/job_with_status.rb:87:in `perform'
./test/test_resque-job_with_status.rb:91:in `__bind_1264463825_365972'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:380:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:380:in `run_current_setup_blocks'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:379:in `each'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:379:in `run_current_setup_blocks'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:361:in `test: Resque::JobWithStatus killing a job should not persist the kill key. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
2) Error:
test: Resque::JobWithStatus killing a job should only perform iterations up to kill. (TestResqueJobWithStatus):
Errno::ECONNREFUSED: Connection refused - connect(2)
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `initialize'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `new'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `connect_to'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:143:in `connect_to_server'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:192:in `call_command'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:183:in `method_missing'
/Library/Ruby/Gems/1.8/gems/redis-namespace-0.2.0/lib/redis/namespace.rb:126:in `send'
/Library/Ruby/Gems/1.8/gems/redis-namespace-0.2.0/lib/redis/namespace.rb:126:in `method_missing'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/stat.rb:371:in `write_default'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/stat.rb:15:in `initialize'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:909:in `new'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:909:in `stat'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:23:in `initialize'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/logger.rb:11:in `new'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/logger.rb:11:in `initialize'
/Users/nap/dev/resque-status/test/../lib/resque/status.rb:51:in `new'
/Users/nap/dev/resque-status/test/../lib/resque/status.rb:51:in `logger'
/Users/nap/dev/resque-status/test/../lib/resque/job_with_status.rb:115:in `logger'
/Users/nap/dev/resque-status/test/../lib/resque/job_with_status.rb:105:in `safe_perform!'
/Users/nap/dev/resque-status/test/../lib/resque/job_with_status.rb:87:in `perform'
./test/test_resque-job_with_status.rb:91:in `__bind_1264463825_370678'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:380:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:380:in `run_current_setup_blocks'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:379:in `each'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:379:in `run_current_setup_blocks'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:361:in `test: Resque::JobWithStatus killing a job should only perform iterations up to kill. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
3) Error:
test: Resque::JobWithStatus killing a job should set the status to killed. (TestResqueJobWithStatus):
Errno::ECONNREFUSED: Connection refused - connect(2)
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `initialize'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `new'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `connect_to'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:143:in `connect_to_server'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:192:in `call_command'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:183:in `method_missing'
/Library/Ruby/Gems/1.8/gems/redis-namespace-0.2.0/lib/redis/namespace.rb:126:in `send'
/Library/Ruby/Gems/1.8/gems/redis-namespace-0.2.0/lib/redis/namespace.rb:126:in `method_missing'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/stat.rb:371:in `write_default'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/stat.rb:15:in `initialize'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:909:in `new'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:909:in `stat'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:23:in `initialize'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/logger.rb:11:in `new'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/logger.rb:11:in `initialize'
/Users/nap/dev/resque-status/test/../lib/resque/status.rb:51:in `new'
/Users/nap/dev/resque-status/test/../lib/resque/status.rb:51:in `logger'
/Users/nap/dev/resque-status/test/../lib/resque/job_with_status.rb:115:in `logger'
/Users/nap/dev/resque-status/test/../lib/resque/job_with_status.rb:105:in `safe_perform!'
/Users/nap/dev/resque-status/test/../lib/resque/job_with_status.rb:87:in `perform'
./test/test_resque-job_with_status.rb:91:in `__bind_1264463825_374401'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:380:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:380:in `run_current_setup_blocks'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:379:in `each'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:379:in `run_current_setup_blocks'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:361:in `test: Resque::JobWithStatus killing a job should set the status to killed. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
4) Failure:
test: Resque::JobWithStatus with an invoked job #safe_perform! should set status as failed. (TestResqueJobWithStatus)
[./test/test_resque-job_with_status.rb:165:in `__bind_1264463825_392861'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:380:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:380:in `run_current_setup_blocks'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:379:in `each'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:379:in `run_current_setup_blocks'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:361:in `test: Resque::JobWithStatus with an invoked job #safe_perform! should set status as failed. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run']:
<RuntimeError> exception expected but was
Class: <Errno::ECONNREFUSED>
Message: <"Connection refused - connect(2)">
---Backtrace---
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `initialize'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `new'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `connect_to'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:143:in `connect_to_server'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:192:in `call_command'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:183:in `method_missing'
/Library/Ruby/Gems/1.8/gems/redis-namespace-0.2.0/lib/redis/namespace.rb:126:in `send'
/Library/Ruby/Gems/1.8/gems/redis-namespace-0.2.0/lib/redis/namespace.rb:126:in `method_missing'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/stat.rb:371:in `write_default'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/stat.rb:15:in `initialize'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:909:in `new'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:909:in `stat'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:23:in `initialize'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/logger.rb:11:in `new'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/logger.rb:11:in `initialize'
/Users/nap/dev/resque-status/test/../lib/resque/status.rb:51:in `new'
/Users/nap/dev/resque-status/test/../lib/resque/status.rb:51:in `logger'
/Users/nap/dev/resque-status/test/../lib/resque/job_with_status.rb:115:in `logger'
/Users/nap/dev/resque-status/test/../lib/resque/job_with_status.rb:108:in `safe_perform!'
./test/test_resque-job_with_status.rb:166:in `__bind_1264463825_392861'
./test/test_resque-job_with_status.rb:165:in `__bind_1264463825_392861'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:380:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:380:in `run_current_setup_blocks'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:379:in `each'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:379:in `run_current_setup_blocks'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:361:in `test: Resque::JobWithStatus with an invoked job #safe_perform! should set status as failed. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
---------------
5) Error:
test: Resque::Status .logger should return a redisk logger. (TestResqueStatus):
Errno::ECONNREFUSED: Connection refused - connect(2)
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `initialize'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `new'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `connect_to'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:143:in `connect_to_server'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:192:in `call_command'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:183:in `method_missing'
/Library/Ruby/Gems/1.8/gems/redis-namespace-0.2.0/lib/redis/namespace.rb:126:in `send'
/Library/Ruby/Gems/1.8/gems/redis-namespace-0.2.0/lib/redis/namespace.rb:126:in `method_missing'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/stat.rb:371:in `write_default'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/stat.rb:15:in `initialize'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:909:in `new'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:909:in `stat'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:23:in `initialize'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/logger.rb:11:in `new'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/logger.rb:11:in `initialize'
/Users/nap/dev/resque-status/test/../lib/resque/status.rb:51:in `new'
/Users/nap/dev/resque-status/test/../lib/resque/status.rb:51:in `logger'
./test/test_resque-status.rb:107:in `__bind_1264463827_476770'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:380:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:380:in `run_current_setup_blocks'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:379:in `each'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:379:in `run_current_setup_blocks'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:361:in `test: Resque::Status .logger should return a redisk logger. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
6) Error:
test: Resque::Status .logger should scope the logger to a key. (TestResqueStatus):
Errno::ECONNREFUSED: Connection refused - connect(2)
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `initialize'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `new'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:160:in `connect_to'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:143:in `connect_to_server'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:192:in `call_command'
/Library/Ruby/Gems/1.8/gems/redis-0.1.1/lib/redis.rb:183:in `method_missing'
/Library/Ruby/Gems/1.8/gems/redis-namespace-0.2.0/lib/redis/namespace.rb:126:in `send'
/Library/Ruby/Gems/1.8/gems/redis-namespace-0.2.0/lib/redis/namespace.rb:126:in `method_missing'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/stat.rb:371:in `write_default'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/stat.rb:15:in `initialize'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:909:in `new'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:909:in `stat'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/io.rb:23:in `initialize'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/logger.rb:11:in `new'
/Library/Ruby/Gems/1.8/gems/redisk-0.2.0/lib/redisk/logger.rb:11:in `initialize'
/Users/nap/dev/resque-status/test/../lib/resque/status.rb:51:in `new'
/Users/nap/dev/resque-status/test/../lib/resque/status.rb:51:in `logger'
./test/test_resque-status.rb:107:in `__bind_1264463827_479127'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:380:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:380:in `run_current_setup_blocks'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:379:in `each'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:379:in `run_current_setup_blocks'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:361:in `test: Resque::Status .logger should scope the logger to a key. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
38 tests, 54 assertions, 1 failures, 5 errors
Killing test redis server...
rake aborted!
Command failed with status (1): [/System/Library/Frameworks/Ruby.framework/...]
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment