Skip to content

[CRASH REPORT] targeted_long_with_budget is flaking. #150

@sentilesdal

Description

@sentilesdal

Crash Report

Description

The test for targeted_long_with_budget is flaking with some pretty large errors w.r.t. to the limit set in the test.

---- long::targeted::tests::test_calculate_targeted_long_with_budget stdout ----
thread 'long::targeted::tests::test_calculate_targeted_long_with_budget' panicked at crates/hyperdrive-math/src/long/targeted.rs:513:17:
target_rate was 0.012070337217259815, realized rate is 0.012090982675932314. abs_error=0.000020645458672499 was not <= 0.000000100000000000.

Expected Behavior

Should be less than the expected error.

Actual Behavior

Large error.

Steps to Reproduce

Run the test enough times, it will flake.

Possible Solution

Not sure what the issue is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions