Fix test race condition in Profile merge.

This commit is contained in:
Ian Gulliver
2015-05-31 10:07:07 -07:00
parent 72c7453091
commit 7e3af49303

View File

@@ -50,7 +50,9 @@ var logout = function(callback) {
return;
}
if (callback) {
callback();
// Break the callback out from the message handling flow, so a
// Cosmopolite instance created by the callback doesn't see the message.
window.setTimeout(callback, 100);
}
};