Rename testutils to harness

This allows us to bring in a dependency named `testutils`.
This commit is contained in:
Thomas Eizinger 2021-03-24 17:49:19 +11:00
parent 11b45cd8c0
commit b9d8cbeaa2
No known key found for this signature in database
GPG key ID: 651AC83A6C6C8B96
10 changed files with 33 additions and 33 deletions

View file

@ -1,14 +1,14 @@
pub mod testutils;
pub mod harness;
use harness::SlowCancelConfig;
use swap::protocol::{alice, bob};
use testutils::SlowCancelConfig;
use tokio::join;
/// Run the following tests with RUST_MIN_STACK=10000000
#[tokio::test]
async fn happy_path() {
testutils::setup_test(SlowCancelConfig, |mut ctx| async move {
harness::setup_test(SlowCancelConfig, |mut ctx| async move {
let (bob_swap, _) = ctx.bob_swap().await;
let bob_swap = tokio::spawn(bob::run(bob_swap));