Skip to content

Commit 8233321

Browse files
committed
Update
1 parent ddd117d commit 8233321

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

gcloud-java-pubsub/src/main/java/com/google/cloud/pubsub/testing/LocalPubsubHelper.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ public class LocalPubsubHelper {
3939
private final int port;
4040
private final LocalServiceHelper serviceHelper;
4141

42-
4342
// Local server settings
4443
private static final int DEFAULT_PORT = 8080;
4544
private static final String DEFAULT_HOST = "localhost";
46-
private static final URL EMULATE_URL;
45+
private static final URL EMULATOR_URL;
4746

4847
// GCloud emulator settings
4948
private static final String GCLOUD_CMD_TEXT = "gcloud beta emulators pubsub start";
@@ -59,7 +58,7 @@ public class LocalPubsubHelper {
5958

6059
static {
6160
try {
62-
EMULATE_URL = new URL("http://storage.googleapis.com/pubsub/tools/" + FILENAME);
61+
EMULATOR_URL = new URL("http://storage.googleapis.com/pubsub/tools/" + FILENAME);
6362
} catch (MalformedURLException ex) {
6463
throw new IllegalStateException(ex);
6564
}
@@ -77,7 +76,7 @@ public LocalPubsubHelper() {
7776
new GCloudEmulatorRunner(gcloudCommand, VERSION_PREFIX, MIN_VERSION);
7877
DownloadableEmulatorRunner downloadRunner =
7978
new DownloadableEmulatorRunner(Arrays.asList(BIN_NAME, BIN_CMD_PORT_FLAG + port),
80-
EMULATE_URL,
79+
EMULATOR_URL,
8180
MD5_CHECKSUM);
8281
serviceHelper =
8382
new LocalServiceHelper(Arrays.asList(gcloudRunner, downloadRunner), port);

0 commit comments

Comments
 (0)