ok/jj
1
0
Fork 0
forked from mirrors/jj

tests: fix test_fetch_prune_deleted_ref() to set up refs on remote

This is broken since aa78f97d55 "git: refactor tests by extracting some
common setup."
This commit is contained in:
Yuya Nishihara 2023-07-04 16:14:52 +09:00
parent a21397bfff
commit 564506a7c7

View file

@ -1584,7 +1584,7 @@ fn test_fetch_success() {
fn test_fetch_prune_deleted_ref() {
let test_data = GitRepoData::create();
let git_settings = GitSettings::default();
empty_git_commit(&test_data.git_repo, "refs/heads/main", &[]);
empty_git_commit(&test_data.origin_repo, "refs/heads/main", &[]);
let mut tx = test_data
.repo
@ -1602,7 +1602,7 @@ fn test_fetch_prune_deleted_ref() {
assert!(tx.mut_repo().get_branch("main").is_some());
test_data
.git_repo
.origin_repo
.find_reference("refs/heads/main")
.unwrap()
.delete()