wait for mocha output