Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use larger amounts in tests #3872

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

shaurya947
Copy link
Contributor

Closes #3866

Copy link

codecov bot commented Dec 7, 2023

Codecov Report

Attention: 27 lines in your changes are missing coverage. Please review.

Comparison is base (29a1a62) 57.17% compared to head (0abdbf3) 57.18%.

Files Patch % Lines
devimint/src/main.rs 0.00% 27 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3872   +/-   ##
=======================================
  Coverage   57.17%   57.18%           
=======================================
  Files         193      193           
  Lines       42578    42578           
=======================================
+ Hits        24346    24348    +2     
+ Misses      18232    18230    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shaurya947 shaurya947 marked this pull request as ready for review December 7, 2023 19:47
@shaurya947 shaurya947 requested a review from a team as a code owner December 7, 2023 19:47
@@ -87,7 +87,7 @@ pub async fn latency_tests(dev_fed: DevFed) -> Result<()> {
let iterations = 30;
let mut reissues = Vec::with_capacity(iterations);
for _ in 0..iterations {
let notes = cmd!(fed, "spend", "50000").out_json().await?["notes"]
let notes = cmd!(fed, "spend", "1000000").out_json().await?["notes"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still isn't a whole lot 😆 (1k sat)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has so many zeros already... :D

Maybe we need ksats(100).to_string()

Copy link
Contributor

@douglaz douglaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@elsirion elsirion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marginally better, but we should have a "reissue 10 BTC when the wallet had only 10 BTC in total" (spending everything is the worst case, up to 4 notes per denomination) test case to give us more confidence.

@@ -373,8 +373,8 @@ async fn cli_tests(dev_fed: DevFed) -> Result<()> {
info!("Testing Client");
// ## reissue e-cash
info!("Testing reissuing e-cash");
const CLIENT_START_AMOUNT: u64 = 420000;
const CLIENT_SPEND_AMOUNT: u64 = 42;
const CLIENT_START_AMOUNT: u64 = 5_000_000_000;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only change that makes the test test any amount of significance.

@dpc dpc added this pull request to the merge queue Dec 12, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Dec 12, 2023
@elsirion elsirion added this pull request to the merge queue Dec 12, 2023
Merged via the queue into fedimint:master with commit 0486dfc Dec 12, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Increase amounts in some of our tests
4 participants