1
0
Fork 0
mirror of https://github.com/endofunky/sidetiq.git synced 2022-11-09 13:53:30 -05:00
endofunky--sidetiq/test
Simon Fröhler 7bec408416 Makes Sidekiq compatible to Sidekiq 3.5.0 and Celluloid 0.17
Fixes "uninitialized constant Celluloid::SupervisionGroup" error on sidekiq start:

* require 'celluloid' instead of 'celluloid/current' in lib/sidetiq.rb
* Supervisor inherits from Celluloid::Supervision::Container instead
  of Celluloid::SupervisionGroup and uses new supervise method signature

More details about the changes in Celluloid can be found here:
https://github.com/celluloid/celluloid/wiki/DEPRECATION-WARNING

Fixes tests to work with Sidekiq 3.5.0:

* Use created_at instead of enqueued_at it the tests:
  > Set a created_at attribute when jobs are created, set enqueued_at only
    when they go into a queue. Fixes invalid latency calculations with
    scheduled jobs. [#2373, mrsimo]

  https://github.com/mperham/sidekiq/blob/master/Changes.md#340

* Set ENV['RACK_ENV'] = 'test' in test/helper.rb to fix tests to fix tests
  to work with Sidekiq 3.4.2 update:
  > Fix CSRF vulnerability in Web UI, thanks to Egor Homakov for reporting. [#2422]

  https://github.com/mperham/sidekiq/blob/master/Changes.md#342
  https://github.com/mperham/sidekiq/pull/2422/files

fixes #140
2015-09-08 15:45:17 +02:00
..
fixtures Store schedules on the workers instead of a global, mutable Hash. 2013-09-17 16:48:41 +01:00
helper.rb Makes Sidekiq compatible to Sidekiq 3.5.0 and Celluloid 0.17 2015-09-08 15:45:17 +02:00
test_clock.rb Make config.utc actually work 2014-03-28 15:37:31 -07:00
test_config.rb Add a locking mechanism so jobs won't get enqueued more often than they should. 2013-02-01 16:53:34 +00:00
test_history.rb Use Sidekiq's wrappers for parsing/generating JSON. 2013-09-26 12:13:23 +01:00
test_lock_meta_data.rb Use Sidekiq's wrappers for parsing/generating JSON. 2013-09-26 12:13:23 +01:00
test_lock_redis.rb Rename lock test. 2013-09-17 10:49:09 +01:00
test_schedulable.rb Schedule recurring jobs only sidekiq server side 2014-07-03 17:36:38 +06:00
test_schedule.rb Make config.utc actually work 2014-03-28 15:37:31 -07:00
test_sidetiq.rb Makes Sidekiq compatible to Sidekiq 3.5.0 and Celluloid 0.17 2015-09-08 15:45:17 +02:00
test_subclass_tracking.rb Add extra test for SubclassTracking. 2014-09-24 09:48:58 +01:00
test_version.rb Prep versioning for 0.4.0.rc1. 2013-09-16 13:04:13 +01:00
test_web.rb Store schedules on the workers instead of a global, mutable Hash. 2013-09-17 16:48:41 +01:00
test_worker.rb Store schedules on the workers instead of a global, mutable Hash. 2013-09-17 16:48:41 +01:00