Skip to content

Commit 494e814

Browse files
committed
fix(integration_test): add delay before running tests
1 parent 11f38aa commit 494e814

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

integration_test/scripts/run-tests.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,10 @@ class TestRunner {
989989
// Deploy functions
990990
await this.deployFunctions();
991991

992+
// Wait for functions to become fully available
993+
this.log("⏳ Waiting 20 seconds for functions to become fully available...", "info");
994+
await new Promise(resolve => setTimeout(resolve, 20000));
995+
992996
// Run tests
993997
await this.runTests([suiteName]);
994998

@@ -1094,6 +1098,10 @@ class TestRunner {
10941098
// Deploy functions
10951099
await this.deployFunctions();
10961100

1101+
// Wait for functions to become fully available
1102+
this.log("⏳ Waiting 20 seconds for functions to become fully available...", "info");
1103+
await new Promise(resolve => setTimeout(resolve, 20000));
1104+
10971105
// Run tests for this project's suites
10981106
await this.runTests(projectSuites);
10991107

@@ -1115,6 +1123,10 @@ class TestRunner {
11151123
// Deploy functions
11161124
await this.deployFunctions();
11171125

1126+
// Wait for functions to become fully available
1127+
this.log("⏳ Waiting 20 seconds for functions to become fully available...", "info");
1128+
await new Promise(resolve => setTimeout(resolve, 20000));
1129+
11181130
// Run tests
11191131
await this.runTests(suiteNames);
11201132

0 commit comments

Comments
 (0)