mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 17:19:01 +01:00
💄
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user