Skip to content

Commit b626f95

Browse files
committed
Added some small delays
1 parent 7fd3ff2 commit b626f95

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/test/standard-workspace.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ suite("Standard Workspace Test Suite", () => {
153153

154154
await monitorWorkspaceSetup();
155155

156-
157-
156+
await new Promise((resolve) => setTimeout(resolve, 10000));
158157
console.log("📁 Step 4: Creating project from template...");
159158
// Prime the mock interface for project creation interactions
160159
uiMock.primeInteractions([
@@ -179,6 +178,7 @@ suite("Standard Workspace Test Suite", () => {
179178
result = await vscode.commands.executeCommand("zephyr-ide.add-build");
180179
assert.ok(result, "Build configuration should succeed");
181180

181+
await new Promise((resolve) => setTimeout(resolve, 10000));
182182
console.log("⚡ Step 6: Executing build...");
183183
result = await vscode.commands.executeCommand("zephyr-ide.build");
184184
assert.ok(result, "Build execution should succeed");

src/test/test-runner.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ const execAsync = util.promisify(cp.exec);
2727
* Check if build dependencies are available using the extension's built-in check
2828
*/
2929
export async function checkBuildDependencies(
30-
context: vscode.ExtensionContext,
31-
wsConfig: WorkspaceConfig,
30+
context: vscode.ExtensionContext,
31+
wsConfig: WorkspaceConfig,
3232
globalConfig: GlobalConfig
3333
): Promise<boolean> {
3434
try {
3535
// Use the extension's own build dependency checker
3636
const result = await checkIfToolsAvailable(context, wsConfig, globalConfig, false);
37-
37+
3838
if (result) {
3939
console.log('✓ Build dependencies are available');
4040
return true;
@@ -57,7 +57,7 @@ export async function checkZephyrToolsAvailable(): Promise<boolean> {
5757
// Just check for basic tools as a fallback
5858
await execAsync('python --version');
5959
await execAsync('cmake --version');
60-
60+
6161
console.log('✓ Basic development tools are available');
6262
return true;
6363
} catch (error) {

0 commit comments

Comments
 (0)