From 8d1f8d02f2e43c13d35b57ff3a625ab5de6c51c7 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 12 Oct 2021 19:54:16 -0700 Subject: rust: handle new migrations in test helper --- rust/src/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust') diff --git a/rust/src/server.rs b/rust/src/server.rs index ac0bd787..4d30ecbe 100644 --- a/rust/src/server.rs +++ b/rust/src/server.rs @@ -71,7 +71,7 @@ pub fn create_test_server() -> Result { diesel_migrations::run_pending_migrations(&conn).unwrap(); diesel_migrations::revert_latest_migration(&conn).unwrap(); diesel_migrations::revert_latest_migration(&conn).unwrap(); - diesel_migrations::run_pending_migrations(&conn).unwrap(); + diesel_migrations::revert_latest_migration(&conn).unwrap(); diesel_migrations::run_pending_migrations(&conn).unwrap(); Ok(server) } -- cgit v1.2.3