Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da3921ad authored by Elv1zz's avatar Elv1zz Committed by Tobias Kaminsky (Rebase PR Action)
Browse files

Fixing compilation error in unit tests



Forgot to update `NextcloudClient` creation to extended constructor signature, which also requires a `Context` instance.

Signed-off-by: default avatarElv1zz <elv1zz.git@gmail.com>
parent 0c6892da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ class NextcloudClientTest {
        MockitoAnnotations.initMocks(this)
        val userId = "test"
        val credentials = Credentials.basic("login", "test")
        nextcloudClient = NextcloudClient(uri, userId, credentials, okHttpClient)
        nextcloudClient = NextcloudClient(uri, userId, credentials, okHttpClient, context)
    }

    @Test
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ class OkHttpMethodBaseTest {
        MockitoAnnotations.initMocks(this)
        val userId = "test"
        val credentials = Credentials.basic("username", "password")
        nextcloudClient = NextcloudClient(uri, userId, credentials, okHttpClient)
        nextcloudClient = NextcloudClient(uri, userId, credentials, okHttpClient, context)
    }

    @Test