File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,16 @@ public static function setUpBeforeClass()
4040
4141 public function setUp ()
4242 {
43+ // Sleep to avoid the rate limit for creating/deleting.
44+ sleep (5 + rand (2 , 4 ));
4345 $ application = require __DIR__ . '/../storage.php ' ;
4446 $ this ->commandTester = new CommandTester ($ application ->get ('bucket-lock ' ));
4547 $ this ->storage = new StorageClient ();
4648 if (!self ::$ hasCredentials ) {
4749 $ this ->markTestSkipped ('No application credentials were found. ' );
4850 }
4951
50- # Append random because tests for multiple PHP versions were running at the same time.
52+ // Append random because tests for multiple PHP versions were running at the same time.
5153 $ bucketName = 'php-bucket-lock- ' . time () . '- ' . rand (1000 , 9999 );
5254 $ this ->bucket = $ this ->storage ->createBucket ($ bucketName );
5355 }
You can’t perform that action at this time.
0 commit comments