Skip to content

Commit 2a09083

Browse files
authored
Merge pull request #112 from browserstack/async_whilst_syntax_change
fix: Update async whilst syntax
2 parents 4768967 + 7f8882f commit 2a09083

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bin/helpers/sync/syncSpecsLogs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ let printSpecsStatus = (bsConfig, buildDetails) => {
7474
stream = tableStream(tableConfig);
7575

7676
async.whilst(
77-
function() { // condition for loop
78-
return whileLoop;
77+
function test(callback) { // condition for loop
78+
callback(null, whileLoop);
7979
},
80-
function(callback) { // actual loop
80+
function iter(callback) { // actual loop
8181
whileProcess(callback)
8282
},
8383
function(err, result) { // when loop ends

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
},
1414
"dependencies": {
1515
"archiver": "^5.2.0",
16+
"async": "^3.2.0",
1617
"chalk": "^4.1.0",
1718
"fs-extra": "^8.1.0",
1819
"glob": "^7.1.6",

0 commit comments

Comments
 (0)