fix tests

This commit is contained in:
nightwing 2016-05-09 03:37:58 +04:00
parent 1f3a5110cc
commit 35b69e0f5e
3 changed files with 9 additions and 1 deletions

View File

@ -707,7 +707,7 @@ define(function(require, exports, module) {
status: "pending",
className: "projectRoot",
isEditable: false,
map: {}
map: Object.create(null)
};
var root = {};
root.map = Object.create(null);

View File

@ -209,6 +209,7 @@ define(function(require, exports, module) {
}
function reconnect(callback) {
if (!connection) return;
connection.socket.setSocket(null);
vfsEndpoint.get(protocolVersion, function(err, urls) {
@ -336,6 +337,11 @@ define(function(require, exports, module) {
plugin.on("unload", function(){
loaded = false;
if (consumer)
consumer.disconnect();
if (connection)
connection.disconnect();
id = null;
buffer = [];
region = null;
@ -346,6 +352,7 @@ define(function(require, exports, module) {
serviceUrl = null;
eioOptions = null;
consumer = null;
connection = null;
vfs = null;
showErrorTimer = null;
showErrorTimerMessage = null;

View File

@ -271,6 +271,7 @@
return cb();
setTimeout.paused = true;
window.app.services.vfs.connection.disconnect();
window.app.services["vfs.endpoint"].clearCache();
setTimeout.force(function() {
setTimeout.paused = false;
setTimeout.clear();