File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
gcloud-java-pubsub/src/main/java/com/google/cloud/pubsub/testing Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public class LocalPubsubHelper {
71
71
public LocalPubsubHelper () {
72
72
port = LocalServiceHelper .findAvailablePort (DEFAULT_PORT );
73
73
List <String > gcloudCommand = new ArrayList <>(Arrays .asList (GCLOUD_CMD_TEXT .split (" " )));
74
- gcloudCommand .add (GCLOUD_CMD_PORT_FLAG + port );
74
+ gcloudCommand .add (GCLOUD_CMD_PORT_FLAG + "localhost:" + port );
75
75
GCloudEmulatorRunner gcloudRunner =
76
76
new GCloudEmulatorRunner (gcloudCommand , VERSION_PREFIX , MIN_VERSION );
77
77
DownloadableEmulatorRunner downloadRunner =
@@ -89,7 +89,7 @@ public LocalPubsubHelper() {
89
89
* @throws IOException
90
90
*/
91
91
public void start () throws IOException , InterruptedException {
92
- String blockUntilOutput = Integer . toString ( port ) ;
92
+ String blockUntilOutput = "Server started, listening on " + port ;
93
93
serviceHelper .start (blockUntilOutput );
94
94
}
95
95
You can’t perform that action at this time.
0 commit comments