Skip to content

Commit

Permalink
Merge pull request #524 from clue-labs/unhandled-rejections
Browse files Browse the repository at this point in the history
Update test suite to avoid unhandled promise rejections
  • Loading branch information
SimonFrings committed Jul 11, 2023
2 parents 0c3c3ca + 4b502d0 commit a827a6f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: cp "$(which composer)" composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM
- name: Run hhvm composer.phar require react/async:^2 react/promise:^2 # downgrade Async and Promise for HHVM
- name: Run hhvm composer.phar require --dev react/async:^2 react/promise:^2 phpunit/phpunit:^5.7 # downgrade Async and Promise for HHVM
uses: docker://hhvm/hhvm:3.30-lts-latest
with:
args: hhvm composer.phar require react/async:^2 react/promise:^2
args: hhvm composer.phar require --dev react/async:^2 react/promise:^2 phpunit/phpunit:^5.7
- name: Run hhvm vendor/bin/phpunit --exclude-group internet
uses: docker://hhvm/hhvm:3.30-lts-latest
with:
Expand Down
11 changes: 9 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,21 @@
"react/event-loop": "^1.4",
"react/http": "^1.8",
"react/promise": "^3 || ^2.10 || ^1.2",
"react/promise-stream": "^1.5",
"react/promise-stream": "^1.6",
"react/promise-timer": "^1.9",
"react/socket": "^1.13",
"react/stream": "^1.3"
},
"require-dev": {
"clue/stream-filter": "^1.3",
"phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36"
"phpunit/phpunit": "^9.6 || ^7.5 || ^5.7 || ^4.8.36",
"react/async": "^4.2@dev || ^3.2@dev || ^4 || ^3 || ^2",
"react/dns": "^1.12@dev",
"react/http": "^1.10@dev",
"react/promise": "^3@dev || ^2.10 || ^1.2",
"react/promise-stream": "^1.7@dev",
"react/promise-timer": "^1.10@dev",
"react/socket": "^1.14@dev"
},
"config": {
"preferred-install": {
Expand Down

0 comments on commit a827a6f

Please sign in to comment.