Skip to content

Commit 94a825d

Browse files
committed
timing issues in tests; don't sleep is poll is 0
1 parent 2cf7273 commit 94a825d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/b2c-cli/src/commands/ods/create.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@ export default class OdsCreate extends OdsCommand<typeof OdsCreate> {
254254
this.log(t('commands.ods.create.waiting', 'Waiting for sandbox to be ready...'));
255255

256256
// Initial delay before first poll to allow the sandbox to be registered in the API
257-
await this.sleep(2000);
257+
// Skip delay when pollInterval is 0 (test mode)
258+
if (pollIntervalSeconds > 0) {
259+
await this.sleep(2000);
260+
}
258261

259262
while (true) {
260263
// Check for timeout

0 commit comments

Comments
 (0)