Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidekiq::Batch::Status wrong number of arguments #92

Closed
codemang opened this issue Mar 28, 2016 · 6 comments
Closed

Sidekiq::Batch::Status wrong number of arguments #92

codemang opened this issue Mar 28, 2016 · 6 comments

Comments

@codemang
Copy link

I'm getting an ArgumentError exception when my specs try to instantiate an instance of Sidekiq::Batch::Status.

With one argument, I get ArgumentError Exception: wrong number of arguments (given 0, expected 2)
With 2+ arguments I get ArgumentError Exception: Wrong number of arguments. Expected 1, got n#

I placed a few break points in the file pertaining to batches and I see the call to the NullBatch initializer is called but not the call to NullStatus. Has anyone ever seen this type of behavior?

I also notice that the BatchStatus object only takes one argument, a bid, but the NullStatus takes both a bid and a callback. How does this work?

@ehsan-khaliki
Copy link

@codemang Were you able to find a solution for this?

@ehsan-khaliki
Copy link

Having same issue

@codemang
Copy link
Author

codemang commented Feb 6, 2017

@ehsan-khaliki sorry this is from a while ago, at this point I don't remember. Good luck though.

@ehsan-khaliki
Copy link

@wpolicarpo @packrat386 @philostler bump

@ehsan-khaliki
Copy link

rspec-sidekiq (2.2.0)
sidekiq (4.2.9)

status = Sidekiq::Batch::Status.new(@batch.bid)

Failure/Error: status = Sidekiq::Batch::Status.new(@batch.bid)

 ArgumentError:
   wrong number of arguments (given 0, expected 2)

@hale
Copy link

hale commented Mar 13, 2017

Fixed in #111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants