Skip to content

Commit d42e3b9

Browse files
committed
Revert "pinging emulator after each test for debugging"
This reverts commit 60ee45d.
1 parent 60ee45d commit d42e3b9

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

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

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525
import com.google.cloud.testing.BaseEmulatorHelper;
2626
import com.google.common.collect.ImmutableList;
2727
import java.io.IOException;
28-
import java.io.InputStream;
29-
import java.io.InputStreamReader;
30-
import java.io.OutputStream;
31-
import java.net.HttpURLConnection;
3228
import java.net.MalformedURLException;
3329
import java.net.URL;
3430
import java.nio.file.FileVisitResult;
@@ -42,8 +38,6 @@
4238
import java.util.UUID;
4339
import java.util.concurrent.TimeoutException;
4440
import java.util.logging.Logger;
45-
46-
import com.google.common.io.CharStreams;
4741
import org.threeten.bp.Duration;
4842

4943
/**
@@ -101,24 +95,6 @@ public class LocalDatastoreHelper extends BaseEmulatorHelper<DatastoreOptions> {
10195
.setCredentials(NoCredentials.getInstance())
10296
.setRetrySettings(ServiceOptions.getNoRetrySettings());
10397

104-
String sendGetRequest(String request) throws IOException {
105-
URL url = new URL("http", DEFAULT_HOST, this.getPort(), request);
106-
HttpURLConnection con = (HttpURLConnection) url.openConnection();
107-
con.setRequestMethod("GET");
108-
109-
InputStream in = con.getInputStream();
110-
String response = CharStreams.toString(new InputStreamReader(con.getInputStream()));
111-
in.close();
112-
return response;
113-
}
114-
public String checkHealth() {
115-
try {
116-
return sendGetRequest("/");
117-
} catch (IOException e) {
118-
throw new RuntimeException(e);
119-
}
120-
}
121-
12298
/** A builder for {@code LocalDatastoreHelper} objects. */
12399
public static class Builder {
124100
private double consistency;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ public static void beforeClass() throws IOException, InterruptedException {
175175

176176
@Before
177177
public void setUp() {
178-
System.out.println(helper.checkHealth());;
179178
rpcFactoryMock = EasyMock.createStrictMock(DatastoreRpcFactory.class);
180179
rpcMock = EasyMock.createStrictMock(DatastoreRpc.class);
181180
rpcMockOptions =

0 commit comments

Comments
 (0)