From bc1b46af0bc8c07ceb26544167fe530d787bbe5d Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Fri, 5 Apr 2024 15:04:37 +0530 Subject: [PATCH] Fixed `EncodedUrlTest` that are failing due to this one reader functionality. --- .../java/org/kiwix/kiwixmobile/reader/EncodedUrlTest.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/reader/EncodedUrlTest.kt b/app/src/androidTest/java/org/kiwix/kiwixmobile/reader/EncodedUrlTest.kt index f59e00d33d..e69b641586 100644 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/reader/EncodedUrlTest.kt +++ b/app/src/androidTest/java/org/kiwix/kiwixmobile/reader/EncodedUrlTest.kt @@ -31,6 +31,7 @@ import org.junit.Test import org.kiwix.kiwixmobile.BaseActivityTest import org.kiwix.kiwixmobile.core.NightModeConfig import org.kiwix.kiwixmobile.core.reader.ZimFileReader +import org.kiwix.kiwixmobile.core.reader.ZimReaderSource import org.kiwix.kiwixmobile.core.utils.SharedPreferenceUtil import org.kiwix.kiwixmobile.main.KiwixMainActivity import org.kiwix.kiwixmobile.testutils.TestUtils @@ -81,9 +82,7 @@ class EncodedUrlTest : BaseActivityTest() { } } val zimFileReader = ZimFileReader( - zimFile, - null, - null, + ZimReaderSource(zimFile), Archive(zimFile.canonicalPath), NightModeConfig(SharedPreferenceUtil(context), context) )