Skip to content

Commit

Permalink
update sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
baiyubin2020 committed Nov 12, 2016
1 parent 5a6592e commit a52866f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion tests/OSS/Tests/BucketLiveChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public function setUp()
$this->bucketName = 'php-sdk-test-rtmp-bucket-name-' . strval(rand(0, 10000));
$this->client->createBucket($this->bucketName);
Common::waitMetaSync();
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(50);
sleep(10);
}
}
}
1 change: 0 additions & 1 deletion tests/OSS/Tests/OssClientImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public function setUp()
$this->bucketName = 'php-sdk-test-bucket-image-' . strval(rand(0, 10000));
$this->client->createBucket($this->bucketName);
Common::waitMetaSync();
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 @@ -23,11 +23,11 @@ public function setUp()
$this->bucket = Common::getBucketName() . rand(100000, 999999);
$this->ossClient = Common::getOssClient();
$this->ossClient->createBucket($this->bucket);
Common::waitMetaSync();
}

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

0 comments on commit a52866f

Please sign in to comment.