Skip to content

Commit

Permalink
fix: Fix emulator command arg data-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
cindy-peng committed Jan 2, 2025
1 parent 926c25f commit 8f7d406
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,15 @@ private LocalDatastoreHelper(Builder builder) {
if (!builder.storeOnDisk) {
gcloudCommand.add("--no-store-on-disk");
}
if (builder.dataDir != null) {
gcloudCommand.add("--data-dir=" + getGcdPath());
}
GcloudEmulatorRunner gcloudRunner =
new GcloudEmulatorRunner(gcloudCommand, VERSION_PREFIX, MIN_VERSION);
List<String> binCommand = new ArrayList<>(Arrays.asList(binName, "start"));
binCommand.add("--testing");
binCommand.add(BIN_CMD_PORT_FLAG + getPort());
binCommand.add(CONSISTENCY_FLAG + getConsistency());
if (builder.dataDir != null) {
gcloudCommand.add("--data-dir=" + getGcdPath());
}
DownloadableEmulatorRunner downloadRunner =
new DownloadableEmulatorRunner(binCommand, EMULATOR_URL, MD5_CHECKSUM, ACCESS_TOKEN);
this.emulatorRunners = ImmutableList.of(gcloudRunner, downloadRunner);
Expand Down

0 comments on commit 8f7d406

Please sign in to comment.