This commit is contained in:
Benjamin Pasero
2018-03-08 11:19:36 +01:00
parent 8c71cf6a0a
commit 21c8bb6679

View File

@@ -8,7 +8,6 @@
import * as assert from 'assert';
import Cache from 'vs/base/common/cache';
import { TPromise } from 'vs/base/common/winjs.base';
import { timeout } from 'vs/base/common/async';
suite('Cache', () => {
@@ -37,7 +36,7 @@ suite('Cache', () => {
const cache = new Cache(() => {
counter1++;
return timeout(1).then(() => counter2++);
return TPromise.timeout(1).then(() => counter2++);
});
assert.equal(counter1, 0);