From ebc94065db47f666ff2408e98125f710fb08f655 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 9 May 2019 00:14:16 -0700 Subject: revet/run both migrations in rust tests --- rust/src/server.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rust') diff --git a/rust/src/server.rs b/rust/src/server.rs index 2a39f882..ac0bd787 100644 --- a/rust/src/server.rs +++ b/rust/src/server.rs @@ -70,6 +70,8 @@ pub fn create_test_server() -> Result { // create fresh database 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::run_pending_migrations(&conn).unwrap(); Ok(server) } -- cgit v1.2.3