mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-10-04 10:06:53 -04:00
fix: Use existingRepoId instead of receivedRepoId to launch existing details
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user