Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Don't assume that save is synchronous in specs #155

Merged
merged 1 commit into from
May 23, 2017

Conversation

maxbrunsfeld
Copy link
Contributor

@maxbrunsfeld maxbrunsfeld commented May 22, 2017

The TextBuffer.save method is going to become async in atom/atom#14435; instead of doing a synchronous write, it will initiate an asynchronous write and return a promise when the write completes. This shouldn't affect the user-facing functionality of many packages; but several packages may have test failures.

This PR updates the two tests in whitespace that broke due to this change, so that they work regardless of whether save is synchronous or asynchronous.

@maxbrunsfeld maxbrunsfeld merged commit 771a9f1 into master May 23, 2017
@maxbrunsfeld maxbrunsfeld deleted the mb-handle-async-save branch May 23, 2017 00:05
This was referenced Jun 14, 2017
This was referenced Jun 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant