Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Commit a41431e

Browse files
committed
WIP: Print in stderr
1 parent 89be9cb commit a41431e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

algoliasearch/src/test/java/com/algolia/search/saas/IndexTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,11 +535,11 @@ public void DNSTimeout() throws AssertionError {
535535
public void doRequestCompleted(JSONObject content, AlgoliaException error) {
536536
if (error != null) {
537537
final long duration = (System.nanoTime() - startTime) / 1000000;
538-
System.out.println(error.getMessage());
538+
System.err.println(error.getMessage());
539539
// Whitebox.getInternalState(client, "readHosts", hostsArray);
540540
HashMap<String, HostStatus> hostStatuses = (HashMap<String, HostStatus>) Whitebox.getInternalState(client, "hostStatuses");
541541
for (Map.Entry<String, HostStatus> entry : hostStatuses.entrySet()) {
542-
System.out.println(entry.getKey() + ": " + entry.getValue().toString());
542+
System.err.println(entry.getKey() + ": " + entry.getValue().toString());
543543
}
544544
assertTrue("We should hit 4 times the timeout before failing, but test took only " + duration + " ms.",
545545
duration > timeout * 4);

0 commit comments

Comments
 (0)