Skip to content

Commit

Permalink
fix(ci-v5): remove co-wait
Browse files Browse the repository at this point in the history
  • Loading branch information
fivetanley committed Feb 26, 2021
1 parent ed46b10 commit f1e0a08
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions packages/ci-v5/lib/test-run.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
const api = require('./heroku-api')
const wait = require('co-wait')

async function waitForStates(states, testRun, { heroku }) {
while (!states.includes(testRun.status)) {
testRun = await api.testRun(heroku, testRun.pipeline.id, testRun.number)
await wait(1000)
await new Promise((resolve) => setTimeout(resolve, 1000))
}
return testRun
}
Expand Down
1 change: 0 additions & 1 deletion packages/ci-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"@heroku-cli/plugin-run-v5": "^7.49.0",
"ansi-escapes": "3.2.0",
"bluebird": "^3.5.3",
"co-wait": "0.0.0",
"github-url-to-object": "^4.0.4",
"got": "^8.3.2",
"heroku-cli-util": "^8.0.11",
Expand Down

0 comments on commit f1e0a08

Please sign in to comment.