Skip to content

Commit

Permalink
[red-knot] fix incremental benchmark (#12400)
Browse files Browse the repository at this point in the history
We should write `BAR_CODE` to `bar.py`, not to `foo.py`.
  • Loading branch information
carljm authored Jul 19, 2024
1 parent f82bb67 commit 1c7b840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_benchmark/benches/red_knot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1c7b840

Please sign in to comment.