Skip to content

Commit

Permalink
fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Einliterflasche committed Dec 9, 2024
1 parent 0129170 commit f421c55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions swap/src/bitcoin/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ impl WalletBuilder {
pub async fn build(self) -> Wallet<bdk_wallet::rusqlite::Connection> {
let mut database = Connection::open_in_memory().expect("sqlite in memory to work");

panic!("TODO: find a way to populate the database that works with the new bdk version");
compile_error!("TODO: find a way to populate the database that works with the new bdk version");
// for index in 0..self.num_utxos {
// bdk::populate_test_db!(
// &mut database,
Expand Down Expand Up @@ -1470,7 +1470,7 @@ mod tests {
#[test]
fn given_randon_amount_random_fee_and_random_relay_rate_but_fix_weight_does_not_error(
amount in 547u64..,
sat_per_vb in 1..100_000_000,
sat_per_vb in 1u64..100_000_000,
relay_fee in 0u64..100_000_000u64
) {
let weight = 400;
Expand Down Expand Up @@ -1525,7 +1525,7 @@ mod tests {
proptest! {
#[test]
fn given_fee_above_max_should_always_errors(
sat_per_vb in 100_000_000..,
sat_per_vb in 100_000_000u64..,
) {
let weight = 400;
let amount = bitcoin::Amount::from_sat(547u64);
Expand Down Expand Up @@ -1678,7 +1678,7 @@ DEBUG swap::bitcoin::wallet: Bitcoin transaction status changed txid=00000000000

proptest::proptest! {
#[test]
fn funding_never_fails_with_insufficient_funds(funding_amount in 3000u32.., num_utxos in 1..5u8, sats_per_vb in 1..500, key in crate::proptest::bitcoin::extended_priv_key(), alice in crate::proptest::ecdsa_fun::point(), bob in crate::proptest::ecdsa_fun::point()) {
fn funding_never_fails_with_insufficient_funds(funding_amount in 3000u32.., num_utxos in 1..5u8, sats_per_vb in 1u64..500u64, key in crate::proptest::bitcoin::extended_priv_key(), alice in crate::proptest::ecdsa_fun::point(), bob in crate::proptest::ecdsa_fun::point()) {
proptest::prop_assume!(alice != bob);

tokio::runtime::Runtime::new().unwrap().block_on(async move {
Expand Down

0 comments on commit f421c55

Please sign in to comment.