Skip to content

Commit cd050c4

Browse files
author
Akos Kitta
committed
doc: test workaround
Signed-off-by: Akos Kitta <[email protected]>
1 parent 7cfcacb commit cd050c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arduino-ide-extension/src/test/browser/create-api.test.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Container, ContainerModule } from '@theia/core/shared/inversify';
2-
import { expect, assert } from 'chai';
2+
import { assert, expect } from 'chai';
33
import fetch from 'cross-fetch';
44
import { v4 } from 'uuid';
55
import { ArduinoPreferences } from '../../browser/arduino-preferences';
@@ -8,9 +8,9 @@ import { CreateApi } from '../../browser/create/create-api';
88
import { splitSketchPath } from '../../browser/create/create-paths';
99
import { Create, CreateError } from '../../browser/create/typings';
1010
import { SketchCache } from '../../browser/widgets/cloud-sketchbook/cloud-sketch-cache';
11+
import { SketchesService } from '../../common/protocol';
1112
import { AuthenticationSession } from '../../node/auth/types';
1213
import queryString = require('query-string');
13-
import { SketchesService } from '../../common/protocol';
1414

1515
/* eslint-disable @typescript-eslint/no-non-null-asserted-optional-chain */
1616
/* eslint-disable @typescript-eslint/no-non-null-assertion */
@@ -114,6 +114,7 @@ describe('create-api', () => {
114114

115115
async function cleanAllSketches(): Promise<void> {
116116
let sketches = await createApi.sketches();
117+
// Cannot delete the sketches with `await Promise.all` as all delete promise successfully resolve, but the sketch is not deleted from the server.
117118
await sketches
118119
.map(({ path }) => createApi.deleteSketch(path))
119120
.reduce(async (acc, curr) => {

0 commit comments

Comments
 (0)