You need to make sure the sidekiq is cleared properly. If you're running Sidekiq in test mode, you should clear the queue between tests.. please check this approach is working or not:
Sidekiq::Worker.clear_all