mirror of https://github.com/apache/jclouds.git
avoid NPE in testResetNetwork
This commit is contained in:
parent
a4272f5429
commit
5873157074
|
@ -147,7 +147,7 @@ public class AdminNetworkClientLiveTest extends BaseVCloudDirectorClientLiveTest
|
|||
@Test(testName = "POST /admin/network/{id}/action/reset")
|
||||
public void testResetNetwork() {
|
||||
// TODO assert that network is deployed somehow
|
||||
Task resetNetworkTask = networkClient.resetNetwork(network.getHref());
|
||||
Task resetNetworkTask = networkClient.resetNetwork(networkRef.getHref());
|
||||
Checks.checkTask(resetNetworkTask);
|
||||
assertTrue(retryTaskSuccess.apply(resetNetworkTask), String.format(TASK_COMPLETE_TIMELY, "resetNetworkTask"));
|
||||
network = networkClient.getNetwork(network.getHref());
|
||||
|
|
Loading…
Reference in New Issue