Skip to content

Commit fefd9a0

Browse files
committed
tests/dump_db: Add schema.sql to the test
1 parent f752abc commit fefd9a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tests/dump_db.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ fn dump_db_and_reimport_dump() {
2121
let directory = dump_db::DumpDirectory::create().unwrap();
2222
directory.populate(db_one.url()).unwrap();
2323

24-
let db_two = TestDatabase::new();
24+
let db_two = TestDatabase::empty();
25+
26+
let schema_script = directory.export_dir.join("schema.sql");
27+
dump_db::run_psql(&schema_script, db_two.url()).unwrap();
2528

2629
let import_script = directory.export_dir.join("import.sql");
2730
dump_db::run_psql(&import_script, db_two.url()).unwrap();

0 commit comments

Comments
 (0)