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:
parent
a21397bfff
commit
564506a7c7
1 changed files with 2 additions and 2 deletions
|
@ -1584,7 +1584,7 @@ fn test_fetch_success() {
|
||||||
fn test_fetch_prune_deleted_ref() {
|
fn test_fetch_prune_deleted_ref() {
|
||||||
let test_data = GitRepoData::create();
|
let test_data = GitRepoData::create();
|
||||||
let git_settings = GitSettings::default();
|
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
|
let mut tx = test_data
|
||||||
.repo
|
.repo
|
||||||
|
@ -1602,7 +1602,7 @@ fn test_fetch_prune_deleted_ref() {
|
||||||
assert!(tx.mut_repo().get_branch("main").is_some());
|
assert!(tx.mut_repo().get_branch("main").is_some());
|
||||||
|
|
||||||
test_data
|
test_data
|
||||||
.git_repo
|
.origin_repo
|
||||||
.find_reference("refs/heads/main")
|
.find_reference("refs/heads/main")
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.delete()
|
.delete()
|
||||||
|
|
Loading…
Reference in a new issue