Skip to content

Commit

Permalink
Fixed application
Browse files Browse the repository at this point in the history
Signed-off-by: Arnau Mora <[email protected]>
  • Loading branch information
ArnyminerZ committed Oct 19, 2023
1 parent 56cd579 commit c897563
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package at.bitfire.davdroid.ui.webdav

import android.security.NetworkSecurityPolicy
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.core.app.ApplicationProvider
import at.bitfire.davdroid.db.AppDatabase
import at.bitfire.davdroid.db.WebDavMount
import dagger.hilt.android.testing.HiltAndroidRule
Expand Down Expand Up @@ -34,7 +34,7 @@ class AddWebdavMountActivityTest {
fun setUp() {
hiltRule.inject()

model = spyk(AddWebdavMountActivity.Model(InstrumentationRegistry.getInstrumentation().targetContext, db))
model = spyk(AddWebdavMountActivity.Model(ApplicationProvider.getApplicationContext(), db))

Assume.assumeTrue(NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted)
}
Expand Down

0 comments on commit c897563

Please sign in to comment.