We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62151fc commit 2b59ad9Copy full SHA for 2b59ad9
tests/TestCase.php
@@ -2,8 +2,8 @@
2
3
namespace Rapidez\Core\Tests;
4
5
+use Illuminate\Database\QueryException;
6
use Illuminate\Foundation\Testing\DatabaseTransactions;
-use Illuminate\Support\Facades\Cache;
7
use Illuminate\Support\Facades\Schema;
8
use Orchestra\Testbench\TestCase as BaseTestCase;
9
use Rapidez\Core\Facades\Rapidez;
@@ -21,9 +21,12 @@ public function setUp(): void
21
22
$this->setUpDatabase($this->app);
23
24
- Cache::flush();
25
-
26
- Rapidez::setStore(1);
+ try {
+ Rapidez::setStore(1);
+ } catch (QueryException) {
27
+ // If at first you don't succeed, try, try again.
28
29
+ }
30
}
31
32
protected function getPackageProviders($app)
0 commit comments