Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Mar 29, 2024
1 parent 8ca03ec commit 60b058f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion moksha-wallet/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ where
},
)
.await?;
tx.commit().await?;
Ok(secret_range)
}

Expand Down Expand Up @@ -772,7 +773,8 @@ mod tests {
id: keys.keyset_id.clone(),
unit: CurrencyUnit::Sat,
};
let keys_response = KeysResponse::new(key_response);
let keys_response = KeysResponse::new(key_response.clone());
let keys_by_id_response = keys_response.clone();
let keysets = V1Keysets::new(keys.keyset_id, CurrencyUnit::Sat, true);

let mut client = MockCashuClient::default();
Expand All @@ -782,6 +784,9 @@ mod tests {
client
.expect_get_keysets()
.returning(move |_| Ok(keysets.clone()));
client
.expect_get_keys_by_id()
.returning(move |_, _| Ok(keys_by_id_response.clone()));
client.expect_is_v1_supported().returning(move |_| Ok(true));
client
}
Expand Down

0 comments on commit 60b058f

Please sign in to comment.