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()
40
40
41
41
public function setUp ()
42
42
{
43
+ // Sleep to avoid the rate limit for creating/deleting.
44
+ sleep (5 + rand (2 , 4 ));
43
45
$ application = require __DIR__ . '/../storage.php ' ;
44
46
$ this ->commandTester = new CommandTester ($ application ->get ('bucket-lock ' ));
45
47
$ this ->storage = new StorageClient ();
46
48
if (!self ::$ hasCredentials ) {
47
49
$ this ->markTestSkipped ('No application credentials were found. ' );
48
50
}
49
51
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.
51
53
$ bucketName = 'php-bucket-lock- ' . time () . '- ' . rand (1000 , 9999 );
52
54
$ this ->bucket = $ this ->storage ->createBucket ($ bucketName );
53
55
}
You can’t perform that action at this time.
0 commit comments