Skip to content

Commit

Permalink
CORE-20708 Wait for the cluster to be ready before sending REST calls…
Browse files Browse the repository at this point in the history
…. This will ensure config has propagated through the system
  • Loading branch information
LWogan committed Jun 14, 2024
1 parent b2ff0a6 commit b067d47
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package net.corda.e2etest.utilities.config
import com.fasterxml.jackson.databind.JsonNode
import kong.unirest.UnirestException
import net.corda.e2etest.utilities.ClusterInfo
import net.corda.e2etest.utilities.ClusterReadinessChecker
import net.corda.e2etest.utilities.DEFAULT_CLUSTER
import net.corda.e2etest.utilities.assertWithRetryIgnoringExceptions
import net.corda.e2etest.utilities.cluster
Expand Down Expand Up @@ -151,8 +152,8 @@ fun ClusterInfo.waitForConfigurationChange(
}
}

// check cluster is ready. No need to aggresively poll too much as its expected the cluster to be down for a number of seconds
assertIsReady(Duration.ofMinutes(2), Duration.ofMillis(1000))
// check cluster is ready. No need to aggressively poll too much as its expected the cluster to be down for a number of seconds
ClusterReadinessChecker().assertIsReady(Duration.ofMinutes(2), Duration.ofMillis(1000))

// Wait for the service to become available again and have the expected configuration value
assertWithRetryIgnoringExceptions {
Expand Down

0 comments on commit b067d47

Please sign in to comment.