mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 09:00:27 +00:00
Update BackupTest.php
This commit is contained in:
parent
a1359933e0
commit
aecf11c084
1 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ class BackupTest extends ActionTestCase
|
|||
|
||||
$findBackup = false;
|
||||
$backupCompleted = false;
|
||||
for ($i = 0; $i < 100; $i++) {
|
||||
for ($i = 0; $i < 200; $i++) {
|
||||
$findBackup = Backup::where('id', $backupId)->first();
|
||||
$findBackup->checkBackup();
|
||||
if ($findBackup->status == BackupStatus::Completed) {
|
||||
|
@ -98,7 +98,7 @@ class BackupTest extends ActionTestCase
|
|||
$this->assertGreaterThan(0, $getFilesize);
|
||||
$this->assertSame($getFilesize, $findBackup->size);
|
||||
|
||||
Helpers::extractTar($findBackup->file_path, $findBackup->path . '/unit-test');
|
||||
Helpers::extractZip($findBackup->file_path, $findBackup->path . '/unit-test');
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue