fix: Use existingRepoId instead of receivedRepoId to launch existing details

This commit is contained in:
Thore Goebel committed 2024-05-27 15:24:45 +02:00
1 parent 0bc3907660
commit d3ac70276d
5 files changed
+26 -23

No files matched your search

@@ -359,8 +359,9 @@ internal class RepoAdderTest {
every { repoDao.getRepository(any<String>()) } returns existingRepo
val expectedFetchResult =
if (existingRepo.address == url) FetchResult.IsExistingRepository
else FetchResult.IsExistingMirror
if (existingRepo.address == url)
FetchResult.IsExistingRepository(existingRepo.repoId)
else FetchResult.IsExistingMirror(existingRepo.repoId)
expectMinRepoPreview(repoName, expectedFetchResult, canAdd = false) {
repoAdder.fetchRepository(url = downloadUrl, proxy = null)