Skip to content

Commit

Permalink
test_git.rs: delete now-useless test
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyagr committed May 15, 2024
1 parent 1947218 commit 1721ff8
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions lib/tests/test_git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2737,38 +2737,6 @@ fn test_push_branches_not_fast_forward() {
let setup = set_up_push_repos(&settings, &temp_dir);
let mut tx = setup.jj_repo.start_transaction(&settings);

let targets = GitBranchPushTargets {
branch_updates: vec![(
"main".to_owned(),
BranchPushUpdate {
old_target: Some(setup.main_commit.id().clone()),
new_target: Some(setup.sideways_commit.id().clone()),
},
)],
};
let result = git::push_branches(
tx.mut_repo(),
&get_git_repo(&setup.jj_repo),
"origin",
&targets,
git::RemoteCallbacks::default(),
);
// Short-term TODO: This test is now equivalent to the following one, and
// will be removed in a follow-up commit.
assert_debug_snapshot!(result, @r###"
Ok(
(),
)
"###);
}

#[test]
fn test_push_branches_not_fast_forward_with_force() {
let settings = testutils::user_settings();
let temp_dir = testutils::new_temp_dir();
let setup = set_up_push_repos(&settings, &temp_dir);
let mut tx = setup.jj_repo.start_transaction(&settings);

let targets = GitBranchPushTargets {
branch_updates: vec![(
"main".to_owned(),
Expand Down

0 comments on commit 1721ff8

Please sign in to comment.