From 4fde43deee22b53fcca52132c51c27f4012d2933 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Thu, 21 Nov 2013 11:43:52 -0800 Subject: [PATCH] fix(browser): reply "start" event When a browser creates another socket.io connection, we forget the old one, however we need to reply all the events that happens in that connection. Somehow I forgot to reply "start" event, which caused the "Adapter did not report number of tests" warning. --- lib/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.js b/lib/server.js index fca41b8a4..4cf25d4ad 100644 --- a/lib/server.js +++ b/lib/server.js @@ -85,7 +85,7 @@ var start = function(injector, config, launcher, globalEmitter, preprocess, file socketServer.sockets.on('connection', function (socket) { log.debug('A browser has connected on socket ' + socket.id); - var replySocketEvents = events.bufferEvents(socket, ['info', 'error', 'result', 'complete']); + var replySocketEvents = events.bufferEvents(socket, ['start', 'info', 'error', 'result', 'complete']); socket.on('register', function(info) { var newBrowser;