Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid checking file metadata in graal tests #8161

Merged
merged 2 commits into from
Dec 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.assumeNotGraalVMImage()

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