Skip to content

Commit 57bc7d8

Browse files
author
Akos Kitta
committed
fix: revert unnecessary await
💄 test suite description + dev comments Signed-off-by: Akos Kitta <[email protected]>
1 parent 808fbe4 commit 57bc7d8

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

arduino-ide-extension/src/test/node/core-client-provider.slow-test.ts

+10-3
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ describe('core-client-provider', () => {
4545
});
4646
});
4747

48+
// The better translation the CLI has, the more likely IDE2 won't be able to detect primary package and library index errors.
49+
// Instead of running the test against all supported locales, IDE2 runs the tests with locales that result in a bug.
4850
['it', 'de'].map(([locale]) =>
49-
it(`should recover from the missing 'directories.data' independently from the CLI locale: '${locale}'`, async function () {
51+
it(`should recover when the 'directories.data' folder is missing independently from the CLI's locale ('${locale}')`, async function () {
5052
this.timeout(timeout);
5153
const configDirPath = await prepareTestConfigDir({ locale });
5254

@@ -59,7 +61,7 @@ describe('core-client-provider', () => {
5961
})
6062
);
6163

62-
it("should recover all when the 'directories.data' folder is missing", async function () {
64+
it("should recover when the 'directories.data' folder is missing", async function () {
6365
this.timeout(timeout);
6466
const configDirPath = await prepareTestConfigDir();
6567
deleteSync(join(configDirPath, 'data'));
@@ -106,7 +108,12 @@ describe('core-client-provider', () => {
106108
});
107109

108110
['serial-discovery', 'mdns-discovery'].map((tool) =>
109-
it(`should recover the platform tools when the 'tools/${tool}' location is missing inside the 'directories.data/packages' folder`, async function () {
111+
it(`should recover when the '${join(
112+
'packages',
113+
'builtin',
114+
'tools',
115+
tool
116+
)}' folder is missing`, async function () {
110117
this.timeout(timeout);
111118
const configDirPath = await prepareTestConfigDir();
112119
const builtinToolsPath = join(

arduino-ide-extension/src/test/node/test-bindings.ts

-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ export async function startDaemon(
407407
container.get<CoreClientProvider>(CoreClientProvider);
408408
toDispose.push(Disposable.create(() => daemon.stop()));
409409
configService.onStart();
410-
await configService.getConfiguration(); // ensure the config service is ready with the modified `directories` props.
411410
daemon.onStart();
412411
await Promise.all([
413412
waitForEvent(daemon.onDaemonStarted, 10_000),

0 commit comments

Comments
 (0)