mirror of
https://github.com/apache/jclouds.git
synced 2025-02-28 21:39:09 +00:00
Fixes an error caused by not using an assert by @CheckReturnValue. Also see jsr305
This commit is contained in:
parent
5ad245dea5
commit
632e0c3f66
@ -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…
x
Reference in New Issue
Block a user