Fix running stdlib tests in worker on Native

Add `@SharedImmutable` or `@ThreadLocal` where required.
This commit is contained in:
Svyatoslav Scherbina
2020-12-10 12:09:35 +03:00
parent 8f4e4a4d40
commit 0f4173cdfa
5 changed files with 32 additions and 0 deletions
@@ -8,11 +8,14 @@ package test.time
import test.numbers.assertAlmostEquals
import test.*
import kotlin.native.concurrent.SharedImmutable
import kotlin.test.*
import kotlin.time.*
import kotlin.random.*
@SharedImmutable
private val expectStorageUnit = DurationUnit.NANOSECONDS
@SharedImmutable
private val units = DurationUnit.values()
class DurationTest {