From 1c7b84059e5490b5c0a9f4658975559e5372a6ba Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Fri, 19 Jul 2024 08:32:37 -0700 Subject: [PATCH] [red-knot] fix incremental benchmark (#12400) We should write `BAR_CODE` to `bar.py`, not to `foo.py`. --- crates/ruff_benchmark/benches/red_knot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff_benchmark/benches/red_knot.rs b/crates/ruff_benchmark/benches/red_knot.rs index 98055b82e606a..dbc6c089a3fab 100644 --- a/crates/ruff_benchmark/benches/red_knot.rs +++ b/crates/ruff_benchmark/benches/red_knot.rs @@ -137,7 +137,7 @@ fn benchmark_incremental(criterion: &mut Criterion) { case.fs .write_file( - SystemPath::new("/src/foo.py"), + SystemPath::new("/src/bar.py"), format!("{BAR_CODE}\n# A comment\n"), ) .unwrap();