Fix test race condition in Profile merge.
This commit is contained in:
@@ -50,7 +50,9 @@ var logout = function(callback) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (callback) {
|
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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user