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

[BUGFIX release] Update backburner.js to 1.2.1. #15677

Closed
wants to merge 2 commits into from

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Sep 21, 2017

The diff between v1.1.0 and v1.2.0 includes the following changes:

  • Allow onError to be late bound (and recalculated for each flush).
  • Make now() late bound (allowing for things like sinon.useFakeTimers()).

The diff between [v1.1.0 and
v1.2.0](BackburnerJS/backburner.js@v1.1.0...v1.2.1)
includes the following changes:

* Allow `onError` to be late bound (and recalculated for each flush).
* Make `now()` late bound (allowing for things like
  `sinon.useFakeTimers()`).
Previously, this test assumed that the only value on
`backburner._platform` that was required was `setTimeout`.  As of
Backburner 1.2.1 this is no longer true (it also requires `.now()`), and
really should not have been assumed to begin with.

This change simply ensures that `backburner._platform` continues to have
all the same methods on it, but uses the test override of `setTimeout`
to run its assertions.
@rwjblue
Copy link
Member Author

rwjblue commented Sep 21, 2017

Closing this, rolled changes into #15600 which was also working on a Backburner version bump.

@rwjblue rwjblue closed this Sep 21, 2017
@rwjblue rwjblue deleted the update-backburner.js branch September 21, 2017 15:18
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.

1 participant