diff --git a/app/src/test/java/com/nextcloud/client/core/LocalConnectionTest.kt b/app/src/test/java/com/nextcloud/client/core/LocalConnectionTest.kt index 5a9380573e..f1f77f43e8 100644 --- a/app/src/test/java/com/nextcloud/client/core/LocalConnectionTest.kt +++ b/app/src/test/java/com/nextcloud/client/core/LocalConnectionTest.kt @@ -65,7 +65,7 @@ class LocalConnectionTest { // THEN // no binding is performed - verify(exactly = 0) { context.bindService(any(), any(), any()) } + verify(exactly = 0) { context.bindService(any(), any(), Context.BIND_AUTO_CREATE) } } @Test @@ -76,12 +76,12 @@ class LocalConnectionTest { // WHEN // bind requested - every { context.bindService(mockIntent, any(), any()) } returns true + every { context.bindService(mockIntent!!, any(), Context.BIND_AUTO_CREATE) } returns true connection.bind() // THEN // service bound - verify { context.bindService(mockIntent, any(), any()) } + verify { context.bindService(mockIntent!!, any(), Context.BIND_AUTO_CREATE) } } @Test