mirror of https://github.com/apache/jclouds.git
Fixes an error caused by not using an assert by @CheckReturnValue. Also see jsr305
Conflicts: apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/functions/InternalURLLiveTest.java
This commit is contained in:
parent
6c94f3eb9e
commit
1a27a619d2
|
@ -17,6 +17,7 @@
|
|||
package org.jclouds.openstack.nova.v2_0.functions;
|
||||
|
||||
import static org.jclouds.Constants.PROPERTY_CONNECTION_TIMEOUT;
|
||||
import static org.testng.Assert.assertNotNull;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
|
@ -42,7 +43,7 @@ public class InternalURLLiveTest extends BaseNovaApiLiveTest {
|
|||
String region = api.getConfiguredRegions().iterator().next();
|
||||
// List current servers to ensure that can reach nova with internalUrl ip
|
||||
try {
|
||||
api.getServerApi(region).list().concat().toList();
|
||||
assertNotNull(api.getServerApi(region).list().concat().toList());
|
||||
} catch (Exception e) {
|
||||
Assert.fail("Could not retrieve servers list using the internalUrl", e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue