mirror of
https://github.com/corda/corda.git
synced 2025-04-07 11:27:01 +00:00
Update node/src/integration-test/kotlin/net/corda/node/jmx/Publish.kt
Co-authored-by: Viktor Kolomeyko <viktor.kolomeyko@r3.com>
This commit is contained in:
parent
3c0c1a01a2
commit
0232146515
@ -15,7 +15,10 @@ class PublishTest {
|
||||
driver(DriverParameters(notarySpecs = emptyList(), jmxPolicy = JmxPolicy.defaultEnabled())) {
|
||||
val jmxAddress = startNode().get().jmxAddress.toString()
|
||||
val nodeStatusURL = URL("http://$jmxAddress/jolokia/read/net.corda:*")
|
||||
var httpResponse = HttpURLConnection.HTTP_NOT_FOUND
|
||||
val httpResponse = with(nodeStatusURL.openConnection() as HttpURLConnection) {
|
||||
requestMethod = "GET"
|
||||
responseCode
|
||||
}
|
||||
with(nodeStatusURL.openConnection() as HttpURLConnection) {
|
||||
requestMethod = "GET"
|
||||
httpResponse = responseCode
|
||||
|
Loading…
x
Reference in New Issue
Block a user