Skip to content

Commit

Permalink
test: remove unnecessary miri flags
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromfedricci committed Nov 6, 2024
1 parent 04009af commit c0ebb14
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/relax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,16 +246,8 @@ impl RelaxImpl for YieldBackoff {
type Uint = u32;

/// The default max number of shifts the inner value of `Backoff` will produce.
#[cfg(not(miri))]
const DEFAULT_SHIFTS: Uint = 6;

/// The default max number of shifts the inner value of `Backoff` will produce.
///
/// For testing purposes, lets make this super small, else Miri runs will take
/// far more time without much benefit.
#[cfg(miri)]
const DEFAULT_SHIFTS: Uint = 1;

/// Inner backoff counter that keeps track of the number of shifts applied.
///
/// The maximum value the inner shift counter can take is defined by `MAX`.
Expand Down

0 comments on commit c0ebb14

Please sign in to comment.