Skip to content

Commit

Permalink
Avoid checking file metadata in loom tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke committed Dec 24, 2023
1 parent 464010a commit c2b1470
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ import assertk.assertions.isEqualTo
import assertk.assertions.isGreaterThan
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.internal.publicsuffix.PublicSuffixDatabase
import okhttp3.testing.PlatformRule
import okio.FileSystem
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.RegisterExtension

class PublicSuffixDatabaseTest {
@RegisterExtension
@JvmField
val platform = PlatformRule()

@Test
fun testResourcesLoaded() {
val url = "https://api.twitter.com".toHttpUrl()
Expand All @@ -33,6 +39,8 @@ class PublicSuffixDatabaseTest {

@Test
fun testPublicSuffixes() {
platform.assumeNotLoom()

val metadata = FileSystem.RESOURCES.metadata(PublicSuffixDatabase.PUBLIC_SUFFIX_RESOURCE)
assertThat(metadata.size!!).isGreaterThan(30000)
}
Expand Down

0 comments on commit c2b1470

Please sign in to comment.