Skip to content

Commit f2ea473

Browse files
authored
Merge pull request #41 from AlexanderStein/test-fixes
Test fixes
2 parents ff8aa6b + 8fbd581 commit f2ea473

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

tests/merge.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7161,6 +7161,7 @@ fn merge_subcommand_git_merge_flags() {
71617161
/// Test repository state validation in the merge command
71627162
#[test]
71637163
fn merge_subcommand_repository_state_validation() {
7164+
std::env::set_var("LANG", "C");
71647165
println!("\n=== TEST: MERGE SUBCOMMAND REPOSITORY STATE VALIDATION ===");
71657166
let repo_name = "merge_repo_state_validation";
71667167
let repo = setup_git_repo(repo_name);
@@ -7325,7 +7326,7 @@ fn merge_subcommand_repository_state_validation() {
73257326
);
73267327

73277328
assert!(
7328-
stdout.contains("Chain feature_chain"),
7329+
stdout.contains("Chain: feature_chain"),
73297330
"Output should mention the chain name, got: {}",
73307331
stdout
73317332
);

tests/merge_base_failures.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use git2::RepositoryState;
1212
/// that can confuse fork-point detection.
1313
#[test]
1414
fn test_complex_rebased_remote_history() {
15+
std::env::set_var("LANG", "C");
1516
let repo_name = "complex_rebased_remote";
1617
let repo = setup_git_repo(repo_name);
1718
let path_to_repo = generate_path_to_repo(repo_name);

tests/rebase.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,7 @@ chain_name
10771077

10781078
#[test]
10791079
fn rebase_no_forkpoint() {
1080+
std::env::set_var("LANG", "C");
10801081
let repo_name = "rebase_no_forkpoint";
10811082
let repo = setup_git_repo(repo_name);
10821083
let path_to_repo = generate_path_to_repo(repo_name);

0 commit comments

Comments
 (0)