Get db tests passing with Tokio Postgres adaptor

We now run tests that interact with the real database under a Tokio reactor. We make the tests run multi-threaded so we can block on the main thread on database teardown and still make progress actually tearing down the DB.

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo 2022-04-26 13:30:21 -06:00
parent b4ae2b20a0
commit 1293b21b2d
2 changed files with 126 additions and 124 deletions

View file

@ -659,7 +659,11 @@ impl Background {
}
}
}
_ => panic!("this method can only be called on a deterministic executor"),
_ => {
log::info!("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
// panic!("this method can only be called on a deterministic executor")
}
}
}
}