From 3995f7fab89974fd34971c7513eea0fcfcbeb6fe Mon Sep 17 00:00:00 2001 From: Sherzod Karimov Date: Fri, 9 Feb 2024 15:31:25 -0500 Subject: [PATCH] remove filename constraint --- 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!(