Use correct default in testPublicAccess

Regression from d57b6e7b8f.
This commit is contained in:
Andrew Gaul 2015-07-02 16:25:49 -07:00
parent bc9cda2e37
commit bf93cadec6
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ public class BaseContainerLiveTest extends BaseBlobStoreIntegrationTest {
SocketOpen socketOpen = context.utils().injector().getInstance(SocketOpen.class);
Predicate<HostAndPort> socketTester = retry(socketOpen, 60, 5, SECONDS);
HostAndPort hostAndPort = HostAndPort.fromParts(metadata.getPublicUri().getHost(), metadata.getPublicUri().getPort());
int port = metadata.getPublicUri().getPort();
HostAndPort hostAndPort = HostAndPort.fromParts(metadata.getPublicUri().getHost(), port != -1 ? port : 80);
assertTrue(socketTester.apply(hostAndPort), metadata.getPublicUri().toString());
assertEquals(Strings2.toStringAndClose(view.utils().http().get(metadata.getPublicUri())), TEST_STRING);