Skip to content

Commit

Permalink
Update tests/scenarios/fixtures.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Zou <[email protected]>
  • Loading branch information
skarimo and nkzou authored Feb 28, 2024
1 parent 8217b04 commit 4cd7297
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/scenarios/fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,11 @@ pub async fn before_scenario(
let unique = format!("{}-{}-{}", prefix, name, frozen_time.num_seconds());
let unique_alnum = NON_ALNUM_RE.replace_all(unique.as_str(), "").to_string();

let mut uuid_first = frozen_time.num_seconds().to_string();
uuid_first.truncate(8);
let uuid_first = frozen_time.num_seconds().to_string();
let uuid = format!(
"{}-0000-0000-0000-{}00",
uuid_first,
frozen_time.num_seconds()
uuid_first[..8].to_string(),
uuid_first[..10].to_string()
);

world.fixtures = json!({
Expand Down

0 comments on commit 4cd7297

Please sign in to comment.