Skip test 'ShareUtils#date'

The test will be skipped on the CI server because it fails there:

    com.nextcloud.talk.utils.ShareUtilsIT > date[android-27(AVD) - 8.1.0] FAILED
       	java.lang.AssertionError: expected:<1207778138000> but was:<1207785338000>
	at org.junit.Assert.fail(Assert.java:88)

Locally the test works fine. For this problem a issue were created.

See: #1737

Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
Tim Krüger 2021-12-08 08:43:39 +01:00
parent d7b3ba17de
commit aaa9567c19
No known key found for this signature in database
GPG Key ID: FECE3A7222C52A4E
2 changed files with 4 additions and 0 deletions

View File

@ -3,10 +3,12 @@ package com.nextcloud.talk.utils
import at.bitfire.dav4jvm.HttpUtils
import org.apache.commons.lang3.time.DateUtils
import org.junit.Assert.assertEquals
import org.junit.Ignore
import org.junit.Test
import java.util.Date
import java.util.Locale
@Ignore("Test fails on CI server. See issue https://github.com/nextcloud/talk-android/issues/1737")
class ShareUtilsIT {
@Test
fun date() {

View File

@ -30,6 +30,7 @@ import com.nextcloud.talk.utils.database.user.UserUtils
import org.junit.Assert
import org.junit.Assert.assertEquals
import org.junit.Before
import org.junit.Ignore
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.ArgumentMatchers
@ -43,6 +44,7 @@ import java.text.ParseException
@RunWith(PowerMockRunner::class)
@PrepareForTest(TextUtils::class)
@Ignore("Test fails on CI server. See issue https://github.com/nextcloud/talk-android/issues/1737")
class ShareUtilsTest {
@Mock
private val context: Context? = null