Skip to content

Commit

Permalink
fix(tests): try to fix non-determinism for `test_sync_no_delete_main_…
Browse files Browse the repository at this point in the history
…branch`
  • Loading branch information
arxanas committed Jul 20, 2023
1 parent d884a24 commit 6dcdd06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions git-branchless/tests/test_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ fn remove_nondeterministic_lines(output: String) -> String {
// don't understand how it would only sometimes print this
// message, but it does.
&& !line.contains("Switched to branch")
// There are weird non-deterministic failures for test
// `test_sync_no_delete_main_branch` where an extra newline is
// printed, such as in
// https://github.com/arxanas/git-branchless/actions/runs/5609690113/jobs/10263760651?pr=1002
&& !line.is_empty()
})
.map(|line| format!("{line}\n"))
.collect()
Expand Down

0 comments on commit 6dcdd06

Please sign in to comment.