From 4cd72978fb4f305c371a4012390b7b6bed79637b Mon Sep 17 00:00:00 2001 From: skarimo <40482491+skarimo@users.noreply.github.com> Date: Wed, 28 Feb 2024 16:14:56 -0500 Subject: [PATCH] Update tests/scenarios/fixtures.rs Co-authored-by: Kevin Zou <17015060+nkzou@users.noreply.github.com> --- tests/scenarios/fixtures.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/scenarios/fixtures.rs b/tests/scenarios/fixtures.rs index 81b025120..2cc5986cf 100644 --- a/tests/scenarios/fixtures.rs +++ b/tests/scenarios/fixtures.rs @@ -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!({