atom / symbols-view

Jump to symbols in Atom
MIT License
165 stars 115 forks source link

Wait for save to complete in tests #222

Closed maxbrunsfeld closed 7 years ago

maxbrunsfeld commented 7 years ago

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 symbols-view that broke due to this change, so that they work regardless of whether save is synchronous or asynchronous.