diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb806fa..19ce154 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: jobs: PHPUnit: name: PHPUnit (PHP ${{ matrix.php }}) - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: matrix: php: @@ -29,7 +29,7 @@ jobs: - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - coverage: xdebug + coverage: ${{ matrix.php < 8.0 && 'xdebug' || 'pcov' }} ini-file: development - run: composer install - run: docker pull busybox:latest diff --git a/tests/FunctionalClientTest.php b/tests/FunctionalClientTest.php index c34a1c6..2a9e5ea 100644 --- a/tests/FunctionalClientTest.php +++ b/tests/FunctionalClientTest.php @@ -478,11 +478,9 @@ public function testCreateConnectDisconnectAndRemoveNetwork() $promise = $this->client->events($start, $end, array('network' => array($network['Id']))); $ret = \React\Async\await($promise); - // expects "create", "disconnect", "destroy" events ("connect" will be skipped because we don't start the container) - $this->assertCount(3, $ret); + $this->assertCount(2, $ret); $this->assertEquals('create', $ret[0]['Action']); - $this->assertEquals('disconnect', $ret[1]['Action']); - $this->assertEquals('destroy', $ret[2]['Action']); + $this->assertEquals('destroy', $ret[1]['Action']); } /**