Skip to content

Commit

Permalink
fix sleep time
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertYue19900425 committed Nov 11, 2016
1 parent 7da4314 commit 5a6592e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/OSS/Tests/BucketCnameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BucketCnameTest extends \PHPUnit_Framework_TestCase
public function setUp()
{
$this->client = Common::getOssClient();
$this->bucketName = 'php-sdk-test-bucket-' . strval(rand(0, 10));
$this->bucketName = 'php-sdk-test-bucket-' . strval(rand(0, 10000));
$this->client->createBucket($this->bucketName);
}

Expand Down
4 changes: 2 additions & 2 deletions tests/OSS/Tests/BucketLiveChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class BucketLiveChannelTest extends \PHPUnit_Framework_TestCase
public function setUp()
{
$this->client = Common::getOssClient();
$this->bucketName = 'php-sdk-test-rtmp-bucket-name-' . strval(rand(0, 10));
$this->bucketName = 'php-sdk-test-rtmp-bucket-name-' . strval(rand(0, 10000));
$this->client->createBucket($this->bucketName);
Common::waitMetaSync();
sleep(30);
sleep(15);
}

public function tearDown()
Expand Down
2 changes: 1 addition & 1 deletion tests/OSS/Tests/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static function createBucket()
public static function waitMetaSync()
{
if (getenv('TRAVIS')) {
sleep(60);
sleep(50);
}
}
}
4 changes: 2 additions & 2 deletions tests/OSS/Tests/OssClientImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ class OssClinetImageTest extends \PHPUnit_Framework_TestCase
public function setUp()
{
$this->client = Common::getOssClient();
$this->bucketName = 'php-sdk-test-bucket-image-' . strval(rand(0, 10));
$this->bucketName = 'php-sdk-test-bucket-image-' . strval(rand(0, 10000));
$this->client->createBucket($this->bucketName);
Common::waitMetaSync();
sleep(30);
sleep(15);
$this->local_file = "example.jpg";
$this->object = "oss-example.jpg";
$this->download_file = "image.jpg";
Expand Down
2 changes: 1 addition & 1 deletion tests/OSS/Tests/TestOssClientBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function setUp()

public function tearDown()
{
sleep(60);
sleep(30);
if (!$this->ossClient->doesBucketExist($this->bucket)) {
return;
}
Expand Down

0 comments on commit 5a6592e

Please sign in to comment.