From 2ad8f0edf8a2decba2a3d5099cbab21818e64315 Mon Sep 17 00:00:00 2001 From: Daniel Hengeveld Date: Wed, 13 Jan 2016 16:39:54 -0500 Subject: [PATCH] Add a few failure messages to waitsFors in flaky specs --- spec/git-repository-async-spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/git-repository-async-spec.js b/spec/git-repository-async-spec.js index 72b83c779..ca287d86f 100644 --- a/spec/git-repository-async-spec.js +++ b/spec/git-repository-async-spec.js @@ -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)) }) })