From 5c312e04ba3339bd2511022d05c24ed088cee328 Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Fri, 23 Sep 2022 12:34:18 +0500 Subject: [PATCH] random dir name --- tests/TenantDatabaseManagerTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/TenantDatabaseManagerTest.php b/tests/TenantDatabaseManagerTest.php index 32e33c03..44b5fc8c 100644 --- a/tests/TenantDatabaseManagerTest.php +++ b/tests/TenantDatabaseManagerTest.php @@ -230,7 +230,7 @@ test('path used by sqlite manager can be customized', function () { })->toListener()); // Set custom path for SQLite file - SQLiteDatabaseManager::$path = $customPath = database_path('custom'); + SQLiteDatabaseManager::$path = $customPath = database_path(Str::random(8)); if (! is_dir($customPath)) { // Create custom directory @@ -244,7 +244,6 @@ test('path used by sqlite manager can be customized', function () { ]); expect(file_exists( $customPath . '/' . $name))->toBeTrue(); - unlink($customPath . '/' . $name); // clean up }); // Datasets