Skip to content

Commit

Permalink
Replace common stdlib in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vmishenev committed Oct 25, 2023
1 parent 0724980 commit 33de7bd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions core/test-api/src/main/kotlin/testApi/testRunner/TestRunner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,11 @@ public abstract class AbstractTest<M : TestMethods, T : TestBuilder<M>, D : Dokk
?.replaceAfter(".jar", "")
}

protected val commonStdlibPath: String? by lazy {
// TODO: feels hacky, find a better way to do it
ClassLoader.getSystemResource("kotlin/UInt.kotlin_metadata")
?.file
?.replace("file:", "")
?.replaceAfter(".jar", "")
protected val commonStdlibPath: String? by lazy {
// `kotlin-stdlib-common` is legacy
// we can use any platform dependency
// since common code should be resolved with all platform
jvmStdlibPath
}

protected val stdlibExternalDocumentationLink: ExternalDocumentationLinkImpl = ExternalDocumentationLinkImpl(
Expand Down

0 comments on commit 33de7bd

Please sign in to comment.