Christopher Louvet
9d09539eba
Symbolize keys in options hash for RedisConnection.create
...
Fixes an edge case where a stringified `namespace` key
is ignored. A `namespace` key may be a string if
the Sidekiq Redis config is loaded from a yml file.
Also minor, syntactical improvements to error messaging.
Existing tests pass. Added a new test to address
this edge-case.
2016-05-26 12:50:37 +07:00
Mike Perham
2c9f7662fc
Freeze all string literals in source, fixes #2741
...
Tests pass and smoke test works perfectly.
2015-12-31 15:33:35 -08:00
Mike Perham
53e6b9e2df
Test suite overhaul
...
Remove Redis mocking. Minimize Redis flushing where possible.
2015-09-23 10:56:37 -07:00
grosser
57a06d00d6
allow every test to be run with just ruby test/xxx_test.rb
2014-12-30 12:54:58 -08:00
Charlie Somerville
f920fbc0ed
use ENV.to_hash instead of ENV.to_h to support antique rubies
2014-06-08 13:53:47 +10:00
Charlie Somerville
925b80e85e
restore env vars to original values after these tests
2014-06-08 13:43:22 +10:00
Mike Perham
7d2b387d94
merge 2.17.5 stuff
2014-02-15 23:49:56 -08:00
Sean Doyle
e12bf878fa
Replaced class and instance level send
...
Replaced with `__send__` from std lib
* `send` can now be overridden to be more semantically meaningful
* `message.send(user_id)` as opposed to `message.send_message(user_id)`
* `__send__` makes it clear that the reflective version is intended
2014-02-14 09:43:34 -05:00
Mike Perham
44379c8d48
Fix test
2014-02-01 21:14:32 -08:00
Chris Sprehe
da48ce6ded
changed #determine_redis_provider to first check against the REDIS_PROVIDER env variable
2013-11-24 08:16:37 -06:00
Salimane Adjao Moustapha
ceb7b9a7d4
add socket path test cases
2013-10-21 21:54:02 +02:00
Mike Perham
babfdc96c5
Backport test suite to Minitest 4 so we can test against Rails 4.
2013-09-22 14:38:33 -07:00
Glen
48c70f8545
Added option to set the network timeout for the Redis connection
2013-07-17 09:02:51 -06:00
Glen
5a4de159f0
Allow setting of a custom timeout for the Redis Connection Pool
2013-07-16 15:40:50 -06:00
Mike Perham
4679c95f49
Upgrade to Minitest 5
2013-05-12 14:25:30 -07:00
Mike Perham
6961a4f20f
Refactor redis log to print in both server and client
2013-04-17 10:07:46 -07:00
Mike Perham
a129a444fd
Lock down namespace configuration, fixes #747
2013-03-01 16:13:20 -08:00
Brandon Hilkert
396bf6cd7a
Move global Sidekiq option changes to before/after when testing redis
...
connection so it doesn't pollute the rest of the test suite.
2013-01-26 16:17:27 -05:00
Mike Perham
00af937b8f
Fix broken tests due to #631 changing global state
2013-01-26 08:07:13 -08:00
grosser
e43d46aa4d
use namespace from options/config
2013-01-19 16:03:12 -08:00
jc00ke
619176f92d
Refactor & add tests for determine_redis_provider
2012-10-14 16:12:17 -07:00