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

Commit 634bad8

Browse files
committed
upgrading datastore emulator to fix DatastoreTest
1 parent f52d4b5 commit 634bad8

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ public class LocalDatastoreHelper extends BaseEmulatorHelper<DatastoreOptions> {
5757
private static final String GCLOUD_CMD_TEXT = "gcloud beta emulators datastore start";
5858
private static final String GCLOUD_CMD_PORT_FLAG = "--host-port=";
5959
private static final String VERSION_PREFIX = "cloud-datastore-emulator ";
60-
private static final String MIN_VERSION = "1.2.0";
60+
private static final String MIN_VERSION = "2.0.2"; // latest version compatible with java 8
6161

6262
// Downloadable emulator settings
6363
private static final String BIN_NAME = "cloud-datastore-emulator/cloud_datastore_emulator";
6464
private static final String FILENAME = "cloud-datastore-emulator-" + MIN_VERSION + ".zip";
65-
private static final String MD5_CHECKSUM = "ec2237a0f0ac54964c6bd95e12c73720";
65+
private static final String MD5_CHECKSUM = "e0d1170519cf52e2e5f9f93892cdf70c";
6666
private static final String BIN_CMD_PORT_FLAG = "--port=";
6767
private static final URL EMULATOR_URL;
6868
private static final String EMULATOR_URL_ENV_VAR = "DATASTORE_EMULATOR_URL";

google-cloud-datastore/src/test/java/com/google/cloud/datastore/DatastoreTest.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
import com.google.cloud.datastore.Query.ResultType;
4141
import com.google.cloud.datastore.StructuredQuery.OrderBy;
4242
import com.google.cloud.datastore.StructuredQuery.PropertyFilter;
43-
import com.google.cloud.datastore.it.MultipleAttemptsRule;
4443
import com.google.cloud.datastore.spi.DatastoreRpcFactory;
4544
import com.google.cloud.datastore.spi.v1.DatastoreRpc;
4645
import com.google.cloud.datastore.testing.LocalDatastoreHelper;
@@ -86,19 +85,13 @@
8685
import org.junit.Assert;
8786
import org.junit.Before;
8887
import org.junit.BeforeClass;
89-
import org.junit.ClassRule;
9088
import org.junit.Test;
9189
import org.junit.runner.RunWith;
9290
import org.junit.runners.JUnit4;
9391
import org.threeten.bp.Duration;
9492

9593
@RunWith(JUnit4.class)
9694
public class DatastoreTest {
97-
private static final int NUMBER_OF_ATTEMPTS = 5;
98-
99-
@ClassRule
100-
public static MultipleAttemptsRule rr = new MultipleAttemptsRule(NUMBER_OF_ATTEMPTS, 10);
101-
10295
private static final LocalDatastoreHelper helper = LocalDatastoreHelper.create(1.0, 9090);
10396
private static DatastoreOptions options = helper.getOptions();
10497
private static Datastore datastore;

0 commit comments

Comments
 (0)