Skip to content

Visual Studio Code, rebuilt in Rust

Rust

test(part_view): skip the blink render count under the retention check

rokartur4e89e178e8eb
diff --git a/native/crates/app/src/workbench/part_view/tests.rs b/native/crates/app/src/workbench/part_view/tests.rs
index 7da4efbc472..fdc6de0c42f 100644
--- a/native/crates/app/src/workbench/part_view/tests.rs
+++ b/native/crates/app/src/workbench/part_view/tests.rs
@@ -160,6 +160,10 @@ fn an_editor_scroll_draws_the_editor_part_alone(cx: &mut TestAppContext) {
/// viewCursors.ts's 500ms blink toggles the focused editor's cursors: the editor part draws again, the others stay.
#[gpui::test]
fn a_cursor_blink_draws_the_editor_part_alone(cx: &mut TestAppContext) {
+ // GPUI_RETENTION_CHECK=1 draws every view again after the blink's frame, the side bar too.
+ if std::env::var("GPUI_RETENTION_CHECK").is_ok_and(|value| value == "1") {
+ return;
+ }
let (dir, workbench, cx) = explorer("blink", cx);
let file = dir.join("a.txt");
std::fs::write(&file, "text\n").unwrap();