Add a few failure messages to waitsFors in flaky specs

This commit is contained in:
Daniel Hengeveld
2016-01-13 16:39:54 -05:00
parent 1cde8f8020
commit 2ad8f0edf8

View File

@@ -459,7 +459,7 @@ describe('GitRepositoryAsync', () => {
repo.onDidChangeStatus(statusHandler)
editor.getBuffer().emitter.emit('did-change-path')
waitsFor(() => statusHandler.callCount > 0)
waitsFor('the onDidChangeStatus handler to be called', () => statusHandler.callCount > 0)
runs(() => {
expect(statusHandler.callCount).toBeGreaterThan(0)
expect(statusHandler).toHaveBeenCalledWith({path: editor.getPath(), pathStatus: 256})
@@ -469,7 +469,7 @@ describe('GitRepositoryAsync', () => {
buffer.onDidChangePath(pathHandler)
buffer.emitter.emit('did-change-path')
waitsFor(() => pathHandler.callCount > 0)
waitsFor('the onDidChangePath handler to be called', () => pathHandler.callCount > 0)
runs(() => expect(pathHandler.callCount).toBeGreaterThan(0))
})
})