GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: fixe the build log with timeout failure · googleapis/java-datastore@d8b9176

This repository was archived by the owner on Feb 24, 2026. It is now read-only.

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • google-cloud-datastore/src/main/java/com/google/cloud/datastore/testing
    • LocalDatastoreHelper.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎google-cloud-datastore/src/main/java/com/google/cloud/datastore/testing/LocalDatastoreHelper.java‎

Copy file name to clipboardExpand all lines: google-cloud-datastore/src/main/java/com/google/cloud/datastore/testing/LocalDatastoreHelper.java
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,17 @@ private LocalDatastoreHelper(Builder builder) {
134134
List<String> gcloudCommand = new ArrayList<>(Arrays.asList(GCLOUD_CMD_TEXT.split(" ")));
135135
gcloudCommand.add(GCLOUD_CMD_PORT_FLAG + "localhost:" + getPort());
136136
gcloudCommand.add(CONSISTENCY_FLAG + builder.consistency);
137-
if (!storeOnDisk) {
137+
if (!builder.storeOnDisk) {
138138
gcloudCommand.add("--no-store-on-disk");
139139
}
140140
GcloudEmulatorRunner gcloudRunner =
141141
new GcloudEmulatorRunner(gcloudCommand, VERSION_PREFIX, MIN_VERSION);
142142
List<String> binCommand = new ArrayList<>(Arrays.asList(binName, "start"));
143143
binCommand.add("--testing");
144144
binCommand.add(BIN_CMD_PORT_FLAG + getPort());
145-
binCommand.add(CONSISTENCY_FLAG + consistency);
146-
if (gcdPath != null) {
147-
gcloudCommand.add("--data-dir=" + gcdPath.toString());
145+
binCommand.add(CONSISTENCY_FLAG + getConsistency());
146+
if (builder.dataDir != null) {
147+
gcloudCommand.add("--data-dir=" + getGcdPath());
148148
}
149149
DownloadableEmulatorRunner downloadRunner =
150150
new DownloadableEmulatorRunner(binCommand, EMULATOR_URL, MD5_CHECKSUM);
@@ -220,7 +220,7 @@ public boolean isStoreOnDisk() {
220220
* consistency of non-ancestor queries; non-ancestor queries are eventually consistent.
221221
*/
222222
public static LocalDatastoreHelper create(double consistency) {
223-
return LocalDatastoreHelper.newBuilder().setConsistency(consistency).build();
223+
return LocalDatastoreHelper.newBuilder().setConsistency(consistency).setPort(0).build();
224224
}
225225

226226
/**
@@ -258,7 +258,7 @@ public static LocalDatastoreHelper create(int port) {
258258
* all writes are immediately visible.
259259
*/
260260
public static LocalDatastoreHelper create() {
261-
return LocalDatastoreHelper.newBuilder().build();
261+
return LocalDatastoreHelper.newBuilder().setConsistency(DEFAULT_CONSISTENCY).build();
262262
}
263263

264264
/**

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.