From aecf11c0840e5577a39511826e2827e25c0f5f27 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Thu, 2 May 2024 21:15:48 +0300 Subject: [PATCH] Update BackupTest.php --- web/tests/Unit/BackupTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/tests/Unit/BackupTest.php b/web/tests/Unit/BackupTest.php index 44809dc..c76e712 100644 --- a/web/tests/Unit/BackupTest.php +++ b/web/tests/Unit/BackupTest.php @@ -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'); }