Skip to content

Commit

Permalink
Update LocalPubsubHelper to be compatible with beta emulators. (#992)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinfan authored and mziccard committed May 6, 2016
1 parent 7857986 commit 6bc34ff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class LocalPubsubHelper {
public LocalPubsubHelper() {
port = LocalServiceHelper.findAvailablePort(DEFAULT_PORT);
List<String> gcloudCommand = new ArrayList<>(Arrays.asList(GCLOUD_CMD_TEXT.split(" ")));
gcloudCommand.add(GCLOUD_CMD_PORT_FLAG + port);
gcloudCommand.add(GCLOUD_CMD_PORT_FLAG + "localhost:" + port);
GCloudEmulatorRunner gcloudRunner =
new GCloudEmulatorRunner(gcloudCommand, VERSION_PREFIX, MIN_VERSION);
DownloadableEmulatorRunner downloadRunner =
Expand All @@ -89,7 +89,7 @@ public LocalPubsubHelper() {
* @throws IOException
*/
public void start() throws IOException, InterruptedException {
String blockUntilOutput = Integer.toString(port);
String blockUntilOutput = "Server started, listening on " + port;
serviceHelper.start(blockUntilOutput);
}

Expand Down

0 comments on commit 6bc34ff

Please sign in to comment.