Skip to content

Commit 4f42a41

Browse files
authored
Merge pull request #53 from tq-steina/test-fixes
Test fixes
2 parents 24afe00 + 4e07f1c commit 4f42a41

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎tests/audit_rebase_invocation.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ fn build_f1_scenario(repo: &Repository, path_to_repo: &Path) {
159159
/// which is git's own form. Half B remains the reference both halves are compared against.
160160
#[test]
161161
fn audit_f1_chain_rebase_skips_already_applied_commits() {
162+
std::env::set_var("LANG", "C");
162163
// ---------------------------------------------------------------------------------
163164
// Half A — git-chain's construction: expected (defectively) to conflict.
164165
// ---------------------------------------------------------------------------------

‎tests/prune.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ fn prune_nonexistent_chain() {
211211

212212
#[test]
213213
fn rebase_suggests_prune_when_branch_is_ancestor_of_root() {
214+
std::env::set_var("LANG", "C");
214215
let repo_name = "rebase_suggests_prune_when_branch_is_ancestor_of_root";
215216
let repo = setup_git_repo(repo_name);
216217
let path_to_repo = generate_path_to_repo(repo_name);
@@ -423,6 +424,7 @@ fn rebase_suggests_prune_when_branch_is_ancestor_of_root() {
423424

424425
#[test]
425426
fn rebase_does_not_suggest_prune_when_no_ancestor() {
427+
std::env::set_var("LANG", "C");
426428
let repo_name = "rebase_does_not_suggest_prune_when_no_ancestor";
427429
let repo = setup_git_repo(repo_name);
428430
let path_to_repo = generate_path_to_repo(repo_name);

0 commit comments

Comments
 (0)