Skip to content

Commit 65c2c9a

Browse files
committed
exclude kotlinx.coroutines.parallelism.compensation from TestSecurityManager check
1 parent 51e4238 commit 65c2c9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/jvm/test/TestSecurityManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import java.security.Permission
55
@Suppress("unused")
66
class TestSecurityManager : SecurityManager() {
77
override fun checkPropertyAccess(key: String?) {
8-
if (key?.startsWith("kotlinx.") == true)
8+
if (key?.startsWith("kotlinx.") == true && key != "kotlinx.coroutines.parallelism.compensation")
99
throw SecurityException("'$key' property is not allowed")
1010
}
1111

0 commit comments

Comments
 (0)