mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-09-22 13:54:55 -04:00
[WIP] Swap app e2e test
This commit is contained in:
parent
9e30bd5151
commit
9384b0cf3c
8 changed files with 81 additions and 25 deletions
|
@ -25,7 +25,7 @@ use std::{
|
|||
time::Duration,
|
||||
};
|
||||
use tokio::{sync::Mutex, time::timeout};
|
||||
use tracing::error;
|
||||
use tracing::{error, info};
|
||||
|
||||
pub mod message;
|
||||
pub use message::{Message, Message0, Message1, Message2};
|
||||
|
@ -524,6 +524,7 @@ impl State0 {
|
|||
}
|
||||
|
||||
pub fn next_message<R: RngCore + CryptoRng>(&self, rng: &mut R) -> Message0 {
|
||||
info!("Producing first message");
|
||||
let dleq_proof_s_a = cross_curve_dleq::Proof::new(rng, &self.s_a);
|
||||
|
||||
Message0 {
|
||||
|
|
|
@ -18,7 +18,6 @@ use std::{convert::TryInto, sync::Arc};
|
|||
use testcontainers::clients::Cli;
|
||||
use tokio::sync::Mutex;
|
||||
use tracing::info;
|
||||
use tracing_subscriber::util::SubscriberInitExt;
|
||||
use xmr_btc::{
|
||||
alice::{self, ReceiveBitcoinRedeemEncsig},
|
||||
bitcoin::{BroadcastSignedTransaction, EncryptedSignature, SignTxLock},
|
||||
|
@ -419,11 +418,6 @@ async fn on_chain_both_refund_if_alice_never_redeems() {
|
|||
|
||||
#[tokio::test]
|
||||
async fn on_chain_alice_punishes_if_bob_never_acts_after_fund() {
|
||||
let _guard = tracing_subscriber::fmt()
|
||||
.with_env_filter("info")
|
||||
.with_ansi(false)
|
||||
.set_default();
|
||||
|
||||
let cli = Cli::default();
|
||||
let (monero, _container) = Monero::new(&cli).unwrap();
|
||||
let bitcoind = init_bitcoind(&cli).await;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue