Skip to content

Conversation

@gjtorikian
Copy link
Contributor

Should close #311. I wasn't sure how interesting the tests should be, but I did my best to show something happening.

end

assert_equal 5, events.size
assert_event events.last, "polling"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I think you can remove a few variables here, like process, jobs, worker, to make this test simpler, since we don't need them to check anything.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok! I removed as many as I could to get a minimum running example. I think process still needs to be there!

Copy link
Member

@rosa rosa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thank you so much! 🙏

@rosa rosa merged commit e580fe7 into rails:main Aug 29, 2024
@gjtorikian gjtorikian deleted the instrument-polling branch August 29, 2024 18:50
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

Successfully merging this pull request may close these issues.

Support for instrumenting polling?

2 participants