Explorar o código

Fix filemodel dispose and test

Steven Silvester %!s(int64=8) %!d(string=hai) anos
pai
achega
c44921a1da
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      src/filebrowser/model.ts
  2. 1 1
      test/src/filebrowser/model.spec.ts

+ 1 - 0
src/filebrowser/model.ts

@@ -118,6 +118,7 @@ class FileBrowserModel implements IDisposable, IPathTracker {
     }
     clearTimeout(this._timeoutId);
     clearInterval(this._refreshId);
+    clearTimeout(this._blackoutId);
     this._model = null;
     this._sessions.clear();
     this._items.clear();

+ 1 - 1
test/src/filebrowser/model.spec.ts

@@ -163,7 +163,7 @@ describe('filebrowser/model', () => {
           session = s;
           return model.cd();
         }).then(() => {
-          expect(model.sessions().next).to.be.ok();
+          expect(model.sessions().next()).to.be.ok();
           return session.shutdown();
         }).then(() => {
           done();