1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

fix malformed test data

This commit is contained in:
Mike Perham 2017-04-24 19:09:00 -07:00
parent 1459ff3f5d
commit c446782932

View file

@ -161,7 +161,7 @@ class TestWeb < Sidekiq::Test
it 'can delete a queue' do
Sidekiq.redis do |conn|
conn.rpush('queue:foo', '{}')
conn.rpush('queue:foo', '{\"args\":[]}')
conn.sadd('queues', 'foo')
end
@ -179,9 +179,9 @@ class TestWeb < Sidekiq::Test
it 'can delete a job' do
Sidekiq.redis do |conn|
conn.rpush('queue:foo', "{}")
conn.rpush('queue:foo', "{\"foo\":\"bar\"}")
conn.rpush('queue:foo', "{\"foo2\":\"bar2\"}")
conn.rpush('queue:foo', "{\"args\":[]}")
conn.rpush('queue:foo', "{\"foo\":\"bar\",\"args\":[]}")
conn.rpush('queue:foo', "{\"foo2\":\"bar2\",\"args\":[]}")
end
get '/queues/foo'