Skip to content
Snippets Groups Projects
Commit c9b22a98 authored by Zachary Carter's avatar Zachary Carter
Browse files

Fix start-stop.js test module to look for router output and ignore tokens...

Fix start-stop.js test module to look for router output and ignore tokens found in "forwarding request" output lines
parent 14b09165
No related branches found
No related tags found
No related merge requests found
......@@ -47,14 +47,16 @@ function setupProc(proc) {
}
var tokenRegex = new RegExp('token=([A-Za-z0-9]+)$', 'm');
if (!sentReady && /^browserid.*127\.0\.0\.1:10002$/.test(x)) {
if (!sentReady && /^router.*127\.0\.0\.1:10002$/.test(x)) {
exports.browserid.emit('ready');
sentReady = true;
} else if (m = tokenRegex.exec(x)) {
tokenStack.push(m[1]);
if (nextTokenFunction) {
nextTokenFunction(tokenStack.shift());
nextTokenFunction = undefined;
if (!(/forwarding request:/.test(x))) {
tokenStack.push(m[1]);
if (nextTokenFunction) {
nextTokenFunction(tokenStack.shift());
nextTokenFunction = undefined;
}
}
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment