{"action":"created","issue":{"url":"https://api.github.com/repos/mperham/sidekiq/issues/2648","labels_url":"https://api.github.com/repos/mperham/sidekiq/issues/2648/labels{/name}","comments_url":"https://api.github.com/repos/mperham/sidekiq/issues/2648/comments","events_url":"https://api.github.com/repos/mperham/sidekiq/issues/2648/events","html_url":"https://github.com/mperham/sidekiq/issues/2648","id":115646438,"number":2648,"title":"Testing sidekiq worker RetrySet","user":{"login":"ganeshkumar","id":160764,"avatar_url":"https://avatars.githubusercontent.com/u/160764?v=3","gravatar_id":"","url":"https://api.github.com/users/ganeshkumar","html_url":"https://github.com/ganeshkumar","followers_url":"https://api.github.com/users/ganeshkumar/followers","following_url":"https://api.github.com/users/ganeshkumar/following{/other_user}","gists_url":"https://api.github.com/users/ganeshkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/ganeshkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganeshkumar/subscriptions","organizations_url":"https://api.github.com/users/ganeshkumar/orgs","repos_url":"https://api.github.com/users/ganeshkumar/repos","events_url":"https://api.github.com/users/ganeshkumar/events{/privacy}","received_events_url":"https://api.github.com/users/ganeshkumar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-07T08:18:01Z","updated_at":"2015-11-08T06:32:05Z","closed_at":null,"body":"I have a worker \r\n\r\nclass MyWorker\r\n  include Sidekiq::Worker\r\n  sidekiq_options :retry => 5\r\n\r\n  def perform(input_Data)\r\n   logic to manipulate data\r\n  end\r\nend\r\n\r\nI tried to test the above code using minitest and i see that the job is not going to retry queue only in testing. Any help ? Thanks in advance.\r\n\r\nSidekiq::Testing.inline! do\r\n  Sidekiq::Testing.server_middleware do |chain|\r\n       chain.add Sidekiq::Server::Middleware::RetryJobs\r\n  end\r\n  MyWorker.expects(:connect).raises(Exception)\r\n  MyWorker.perform_async(input data)\r\n  assert_equal 1, Sidekiq::RetrySet.new.size\r\nend"},"comment":{"url":"https://api.github.com/repos/mperham/sidekiq/issues/comments/154778190","html_url":"https://github.com/mperham/sidekiq/issues/2648#issuecomment-154778190","issue_url":"https://api.github.com/repos/mperham/sidekiq/issues/2648","id":154778190,"user":{"login":"we4tech","id":4054,"avatar_url":"https://avatars.githubusercontent.com/u/4054?v=3","gravatar_id":"","url":"https://api.github.com/users/we4tech","html_url":"https://github.com/we4tech","followers_url":"https://api.github.com/users/we4tech/followers","following_url":"https://api.github.com/users/we4tech/following{/other_user}","gists_url":"https://api.github.com/users/we4tech/gists{/gist_id}","starred_url":"https://api.github.com/users/we4tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/we4tech/subscriptions","organizations_url":"https://api.github.com/users/we4tech/orgs","repos_url":"https://api.github.com/users/we4tech/repos","events_url":"https://api.github.com/users/we4tech/events{/privacy}","received_events_url":"https://api.github.com/users/we4tech/received_events","type":"User","site_admin":false},"created_at":"2015-11-08T06:32:05Z","updated_at":"2015-11-08T06:32:05Z","body":"Hi @ganeshkumar  what's your specific sidekiq version ? "}}