-
Notifications
You must be signed in to change notification settings - Fork 15
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
Support for Database Events #11
Comments
Thanks for reporting. To my knowledge, this library has not been tested against database events. I can't say confidently if the issue is with your test or the library. |
Again, @SirRawlins, I've never used database events with clockwork, but in looking through the documentation, could the issue be that the test does not have a persisted In the test snippet you provided, it looks like you set up I could be misunderstanding the intended usage with database events, as I've never used them personally. Let me know if that helps at all though. |
Thanks for getting back to me. So the PublisherSubscriberSync class is just a clockwork wrapper for the The data generated by FactioryGirl should be sufficient. I think it's I can dig deeper in to things, just wanted to check I wasn't doing anything I could also refactor my clocks to move away from database events and Appreciate the help. On 7 Oct 2016 9:55 pm, "Kevin Murphy" notifications@github.com wrote:
|
If you could post a sample/update when you're able to, I'm happy to help so I know where this stands with you and can track it. I can't say I understand the correlation between If you run the same setup in a local environment outside of test, can you confirm that the events are triggered? |
@SirRawlins how are things going with this? Let me know if you've made any progress or need any feedback. |
Hi Kevin, I was hoping to look at this the past couple of days but simply Completely up to you as to whether you keep the issue open or close it off Appreciate you following up. On 12 Oct 2016 6:37 pm, "Kevin Murphy" notifications@github.com wrote:
|
I'll close this for now, but should you get the time to take a closer look and need to revisit it, please re-open. |
I've got a bunch of clockwork tasks which are implemented as database events, as per the docs https://github.com/tomykaira/clockwork#use-with-database-events.
And I'm trying to test against them in the following manor.
However these clocks don't appear to be run and my assertions fail. Even when inspecting the job history through
Clockwork::Test.manager.send(:history).jobs
they are not listed anywhere, the history is empty.Traditional non-database jobs are run as expected however.
The text was updated successfully, but these errors were encountered: