Skip to content

Commit 3971073

Browse files
committed
Prevent error during shutdown
1 parent 70f10df commit 3971073

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/php/rdbms/unittest/integration/AbstractDeadlockTest.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php namespace rdbms\unittest\integration;
22

3-
use unittest\TestCase;
4-
use unittest\PrerequisitesNotMetError;
53
use lang\Runtime;
6-
use rdbms\DriverManager;
74
use lang\Throwable;
5+
use rdbms\DriverManager;
6+
use unittest\PrerequisitesNotMetError;
7+
use unittest\TestCase;
88

99
/**
1010
* Abstract deadlock test
@@ -46,7 +46,7 @@ public function setUp() {
4646

4747
/** @return void */
4848
public function tearDown() {
49-
$this->dropTables();
49+
$this->dsn && $this->dropTables();
5050
}
5151

5252
/**

0 commit comments

Comments
 (0)