From 3c4d035833d7456fe542f00f675e0a25dcf53a86 Mon Sep 17 00:00:00 2001 From: Waylon Jepsen Date: Fri, 27 Oct 2023 17:06:12 -0600 Subject: [PATCH] other test was broken too --- arbiter-core/src/tests/data_output.rs | 46 --------------------------- arbiter-core/src/tests/mod.rs | 1 - 2 files changed, 47 deletions(-) delete mode 100644 arbiter-core/src/tests/data_output.rs diff --git a/arbiter-core/src/tests/data_output.rs b/arbiter-core/src/tests/data_output.rs deleted file mode 100644 index 979b1c78..00000000 --- a/arbiter-core/src/tests/data_output.rs +++ /dev/null @@ -1,46 +0,0 @@ -use std::{io::Read, process::Command}; - -use tokio::io::AsyncReadExt; -use tracing_test::traced_test; - -use super::*; -use crate::data_collection::EventLogger; - -#[traced_test] -#[tokio::test(flavor = "multi_thread")] -async fn data_capture() { - let (env, client) = startup_user_controlled().unwrap(); - let (arbx, arby, lex) = deploy_liquid_exchange(client.clone()).await.unwrap(); - println!("Deployed contracts"); - - let listener = EventLogger::builder() - .add(arbx.events(), "arbx") - .add(arby.events(), "arby") - .add(lex.events(), "lex"); - - listener.run().unwrap(); - - for _ in 0..5 { - arbx.approve(client.address(), U256::from(1)) - .send() - .await - .unwrap() - .await - .unwrap(); - arby.approve(client.address(), U256::from(1)) - .send() - .await - .unwrap() - .await - .unwrap(); - lex.set_price(U256::from(10u128.pow(18))) - .send() - .await - .unwrap() - .await - .unwrap(); - } - - let _ = env.stop(); - std::fs::remove_dir_all("./data").unwrap(); -} diff --git a/arbiter-core/src/tests/mod.rs b/arbiter-core/src/tests/mod.rs index e1a382b4..1c03f26a 100644 --- a/arbiter-core/src/tests/mod.rs +++ b/arbiter-core/src/tests/mod.rs @@ -4,7 +4,6 @@ // mod interaction; mod clients; mod contracts; -mod data_output; mod derives; mod environment_control; mod middleware_instructions;