@theia/api-tests 1.70.0-next.34 → 1.70.0-next.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/monaco-api.spec.js +2 -3
- package/src/navigator.spec.js +15 -2
- package/src/scm.spec.js +1 -2
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/api-tests",
|
|
3
|
-
"version": "1.70.0-next.
|
|
3
|
+
"version": "1.70.0-next.43+8b83716cc",
|
|
4
4
|
"description": "Theia API tests",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.70.0-next.
|
|
6
|
+
"@theia/core": "1.70.0-next.43+8b83716cc"
|
|
7
7
|
},
|
|
8
8
|
"license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0",
|
|
9
9
|
"repository": {
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "8b83716cc93de231a1d472d4ae4016711dbd31a3"
|
|
24
24
|
}
|
package/src/monaco-api.spec.js
CHANGED
|
@@ -14,14 +14,13 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
const { timeout } = require('@theia/core/lib/common/promise-util');
|
|
18
|
-
const { IOpenerService } = require('@theia/monaco-editor-core/esm/vs/platform/opener/common/opener');
|
|
19
|
-
|
|
20
17
|
// @ts-check
|
|
21
18
|
describe('Monaco API', async function () {
|
|
22
19
|
this.timeout(5000);
|
|
23
20
|
|
|
24
21
|
const { assert } = chai;
|
|
22
|
+
const { timeout } = require('@theia/core/lib/common/promise-util');
|
|
23
|
+
const { IOpenerService } = require('@theia/monaco-editor-core/esm/vs/platform/opener/common/opener');
|
|
25
24
|
|
|
26
25
|
const { EditorManager } = require('@theia/editor/lib/browser/editor-manager');
|
|
27
26
|
const { WorkspaceService } = require('@theia/workspace/lib/browser/workspace-service');
|
package/src/navigator.spec.js
CHANGED
|
@@ -40,8 +40,21 @@ describe('Navigator', function () {
|
|
|
40
40
|
await fileService.createFolder(targetUri);
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
afterEach(async ()
|
|
44
|
-
|
|
43
|
+
afterEach(async function () {
|
|
44
|
+
// On Windows, file handles may not be released immediately after move/copy operations,
|
|
45
|
+
// causing EBUSY errors on cleanup. Retry with a short delay to handle this.
|
|
46
|
+
for (let attempt = 0; attempt < 3; attempt++) {
|
|
47
|
+
try {
|
|
48
|
+
await fileService.delete(targetUri.parent, { fromUserGesture: false, useTrash: false, recursive: true });
|
|
49
|
+
return;
|
|
50
|
+
} catch (e) {
|
|
51
|
+
if (attempt < 2) {
|
|
52
|
+
await new Promise(resolve => setTimeout(resolve, 500));
|
|
53
|
+
} else {
|
|
54
|
+
throw e;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
45
58
|
});
|
|
46
59
|
|
|
47
60
|
/** @type {Array<['copy' | 'move', boolean]>} */
|
package/src/scm.spec.js
CHANGED
|
@@ -14,12 +14,11 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
const { timeout } = require('@theia/core/lib/common/promise-util');
|
|
18
|
-
|
|
19
17
|
// @ts-check
|
|
20
18
|
describe('SCM', function () {
|
|
21
19
|
|
|
22
20
|
const { assert } = chai;
|
|
21
|
+
const { timeout } = require('@theia/core/lib/common/promise-util');
|
|
23
22
|
|
|
24
23
|
const { HostedPluginSupport } = require('@theia/plugin-ext/lib/hosted/browser/hosted-plugin');
|
|
25
24
|
const Uri = require('@theia/core/lib/common/uri');
|