Skip to content

Commit 249b895

Browse files
committed
Fix flaky CreatePlaceholderTests stderr comparison
Git's "Updating files" progress output on stderr is timing-dependent, causing ErrorsShouldMatch to fail when one repo emits progress and the other does not. Set GIT_PROGRESS_DELAY=3600 on all test git invocations so progress output is never emitted for commands completing under an hour. This eliminates the flake at the source without skipping error validation. Assisted-by: Claude Opus 4.6 Signed-off-by: Tyrie Vella <tyrielv@gmail.com>
1 parent 1e748bb commit 249b895

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

GVFS/GVFS.FunctionalTests/Tools/GitProcess.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ public static ProcessResult InvokeProcess(
3535
}
3636

3737
processInfo.EnvironmentVariables["GIT_TERMINAL_PROMPT"] = "0";
38+
// Suppress progress output (e.g. "Updating files: 100%") which is timing-dependent
39+
// and causes flaky stderr comparisons between control and GVFS repos.
40+
processInfo.EnvironmentVariables["GIT_PROGRESS_DELAY"] = "3600";
3841

3942
if (environmentVariables != null)
4043
{

0 commit comments

Comments
 (0)