Skip to content

Commit 8c4695a

Browse files
committed
fix: DB Seeder may use wrong DB connection during testing
The shared migration holds an old DB connection. If SQLite3 `:memory:` is used, a new DB connection is a connection to a new database.
1 parent 5bbf3af commit 8c4695a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Test/DatabaseTestTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function loadDependencies()
7979
$config = new Migrations();
8080
$config->enabled = true;
8181

82-
$this->migrations = Services::migrations($config, $this->db);
82+
$this->migrations = Services::migrations($config, $this->db, false);
8383
$this->migrations->setSilent(false);
8484
}
8585

0 commit comments

Comments
 (0)