Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 8b42e38

Browse files
authored
Update test to account for command setTimeout
1 parent 2e70c5f commit 8b42e38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/commands.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ suite("Arduino: Commands Tests", () => {
1313
const extension = vscode.extensions.getExtension("vsciot-vscode.vscode-arduino");
1414
if (!extension.isActive) {
1515
extension.activate().then((api) => {
16-
done();
16+
// The extension waits 100ms before registering some commands,
17+
// so add a longer delay here before running tests.
18+
setTimeout(() => done(), 200);
1719
}, () => {
1820
done("Failed to activate extension");
1921
});

0 commit comments

Comments
 (0)