Fix scripting test with cycle detection

This commit is contained in:
Ilya Chernikov
2023-08-16 15:10:45 +02:00
committed by Space Team
parent cb3af906cd
commit afd7186680
@@ -156,7 +156,8 @@ class MainKtsTest {
fun testCyclicImportError() {
val res = evalFile(File("$TEST_DATA_ROOT/import-cycle-1.main.kts"))
// TODO: the second error is due to the late cycle detection, see TODO in makeCompiledScript$makeOtherScripts
assertFailedAny("Unable to handle recursive script dependencies", "is already bound", res = res)
// TODO: third error is due to the early IR backend error, consider processing it in makeCompiledScript$makeOtherScripts
assertFailedAny("Unable to handle recursive script dependencies", "is already bound", "Duplicate JVM class name", res = res)
}
@Test