Skip to content

Commit

Permalink
fix(browser): reply "start" event
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vojtajina committed Nov 21, 2013
1 parent b89572c commit 4fde43d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4fde43d

Please sign in to comment.