Skip to content

Commit

Permalink
skip flakey tests, remove testdox flag
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Sep 26, 2024
1 parent e319417 commit 7b6d80c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/system-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ jobs:
- name: Install dependencies
run: composer --no-interaction --no-ansi --no-progress update
- name: Run System Tests
run: vendor/bin/phpunit -c phpunit-system.xml.dist --testdox --colors=always
run: vendor/bin/phpunit -c phpunit-system.xml.dist --colors=always --exclude-group=flakey
env:
GOOGLE_CLOUD_PHP_TESTS_KEY_PATH: ${{ runner.temp }}/service-account.json
10 changes: 5 additions & 5 deletions Firestore/tests/System/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
use Google\Cloud\Core\Testing\TestHelpers;
use Google\Cloud\Firestore\Tests\System\FirestoreTestCase;

// TestHelpers::requireKeyfile('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH');
// TestHelpers::generatedSystemTestBootstrap();
// TestHelpers::systemTestShutdown(function () {
// FirestoreTestCase::tearDownFixtures();
// });
TestHelpers::requireKeyfile('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH');
TestHelpers::generatedSystemTestBootstrap();
TestHelpers::systemTestShutdown(function () {
FirestoreTestCase::tearDownFixtures();
});
7 changes: 6 additions & 1 deletion Storage/tests/System/ManageAclTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,14 @@ public function testManageBucketAcl()
$this->assertAcl(self::$bucket->acl(), $kind);
}

/**
* This test is marked flakey because it often throws a RateLimitExceeded
* error
*
* @group flakey
*/
public function testManageDefaultObjectAcl()
{
$this->markTestSkipped('Skipping flakey test due to exceed rate limits.');
$kind = 'storage#objectAccessControl';
$this->assertAcl(self::$bucket->defaultAcl(), $kind);
}
Expand Down

0 comments on commit 7b6d80c

Please sign in to comment.