Skip to content

Commit

Permalink
Add missing import (#24614)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnabialek authored and taylorotwell committed Jun 15, 2018
1 parent 5b5319f commit 14beafa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Illuminate\Foundation\Testing\Concerns;

use Exception;
use Illuminate\Redis\RedisManager;

trait InteractsWithRedis
Expand Down Expand Up @@ -50,7 +51,7 @@ public function setUpRedis()

try {
$this->redis['predis']->connection()->flushdb();
} catch (\Exception $e) {
} catch (Exception $e) {
if ($host === '127.0.0.1' && $port === 6379 && getenv('REDIS_HOST') === false) {
$this->markTestSkipped('Trying default host/port failed, please set environment variable REDIS_HOST & REDIS_PORT to enable '.__CLASS__);
static::$connectionFailedOnceWithDefaultsSkip = true;
Expand Down

0 comments on commit 14beafa

Please sign in to comment.