Quantcast
Channel: Gigaspaces XAP forum - RSS feed
Viewing all articles
Browse latest Browse all 1486

Best way to confirm the Lookup Service has closed

$
0
0
We have some integration tests that create a local cluster using a org.openspaces.pu.container.support.CompoundProcessingUnitContainer. We then close this after the test is done (in JUnits @AfterClass phase). Since the shutdown is asynchronous, the LUS may still be running when the next integration test is started so the test will use that one instead of starting a new one. However since that LUS is just about to shutdown the test fails. Whats the best way to confirm that the LUS has shutdown before we proceed to the next test?

Viewing all articles
Browse latest Browse all 1486

Trending Articles