mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
renable disabled test. Seems fine now.
This commit is contained in:
@@ -499,17 +499,16 @@ suite('workspace-namespace', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO@Joh this test fails randomly
|
test('findFiles, cancellation', () => {
|
||||||
// test('findFiles, cancellation', () => {
|
|
||||||
|
|
||||||
// const source = new CancellationTokenSource();
|
const source = new vscode.CancellationTokenSource();
|
||||||
// const token = source.token; // just to get an instance first
|
const token = source.token; // just to get an instance first
|
||||||
// source.cancel();
|
source.cancel();
|
||||||
|
|
||||||
// return vscode.workspace.findFiles('*.js', null, 100, token).then((res) => {
|
return vscode.workspace.findFiles('*.js', null, 100, token).then((res) => {
|
||||||
// assert.equal(res, void 0);
|
assert.deepEqual(res, []);
|
||||||
// });
|
});
|
||||||
// });
|
});
|
||||||
|
|
||||||
test('findTextInFiles', async () => {
|
test('findTextInFiles', async () => {
|
||||||
const results: vscode.TextSearchResult[] = [];
|
const results: vscode.TextSearchResult[] = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user