From 564506a7c7664996ba87560cc1d049b3098ad9ed Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Tue, 4 Jul 2023 16:14:52 +0900 Subject: [PATCH] tests: fix test_fetch_prune_deleted_ref() to set up refs on remote This is broken since aa78f97d55c6 "git: refactor tests by extracting some common setup." --- lib/tests/test_git.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tests/test_git.rs b/lib/tests/test_git.rs index f959ffe76..bd1ccb0fa 100644 --- a/lib/tests/test_git.rs +++ b/lib/tests/test_git.rs @@ -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()