minor: improve daemon test stability
This commit is contained in:
@@ -413,16 +413,20 @@ class CompilerDaemonTest : KotlinIntegrationTestBase() {
|
|||||||
KotlinCompilerClient.shutdownCompileService(compilerId, daemonOptions)
|
KotlinCompilerClient.shutdownCompileService(compilerId, daemonOptions)
|
||||||
Thread.sleep(200)
|
Thread.sleep(200)
|
||||||
|
|
||||||
val exception: Exception? = try {
|
val exception: Exception? =
|
||||||
daemon!!.getUsedMemory()
|
try {
|
||||||
null
|
daemon!!.getUsedMemory()
|
||||||
}
|
null
|
||||||
catch (e: java.rmi.ConnectException) {
|
}
|
||||||
e
|
catch (e: java.rmi.ConnectException) {
|
||||||
}
|
e
|
||||||
catch (e: java.rmi.UnmarshalException) {
|
}
|
||||||
e
|
catch (e: java.rmi.UnmarshalException) {
|
||||||
}
|
e
|
||||||
|
}
|
||||||
|
catch (e: java.rmi.ConnectIOException) {
|
||||||
|
e
|
||||||
|
}
|
||||||
assertNotNull(exception)
|
assertNotNull(exception)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user