From b683eaba6eb5cc0a0fda2f243502de12698eb7b4 Mon Sep 17 00:00:00 2001 From: skarimo <40482491+skarimo@users.noreply.github.com> Date: Fri, 9 Feb 2024 15:47:58 -0500 Subject: [PATCH] Remove filename length constraint (#13) --- tests/scenarios/fixtures.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/scenarios/fixtures.rs b/tests/scenarios/fixtures.rs index 0faac7611..ae43c9af9 100644 --- a/tests/scenarios/fixtures.rs +++ b/tests/scenarios/fixtures.rs @@ -80,13 +80,9 @@ pub async fn before_scenario( ) { collect_function_calls(world); - let escaped_filename = NON_ALNUM_RE + let filename = NON_ALNUM_RE .replace_all(scenario.name.as_str(), "-") .to_string(); - let filename = match escaped_filename.len() > 100 { - true => escaped_filename[..100].to_string(), - false => escaped_filename, - }; let mut prefix = "Test".to_string(); let mut cassette_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR")); cassette_dir.push(format!(