Skip to content

Commit

Permalink
remove deplicate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanedey committed Sep 17, 2024
1 parent 92d3112 commit 73e1355
Showing 1 changed file with 0 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,36 +113,6 @@ public void testUnauthorizedPostRequest() throws FirebaseException {
assertEquals("{\"foo\":\"bar\"}", body.get("data"));
}

@Test(timeout = 10_000L)
public void testConnectTimeoutGet() throws IOException {
ApacheHttp2Transport transport = new ApacheHttp2Transport();
ApacheHttp2Request request = transport.buildRequest("GET", "https://localhost:" + port);
request.setTimeout(100, 0);
try {
request.execute();
fail("No exception thrown for HTTP error response");
} catch (IOException e) {
System.out.println(e.getCause());
System.out.println(e.getCause().getMessage());
assertEquals("Connection Timeout", e.getMessage());
}
}

@Test(timeout = 10_000L)
public void testConnectTimeoutPost() throws IOException {
ApacheHttp2Transport transport = new ApacheHttp2Transport();
ApacheHttp2Request request = transport.buildRequest("POST", "https://localhost:" + port);
request.setTimeout(100, 0);
try {
request.execute();
fail("No exception thrown for HTTP error response");
} catch (IOException e) {
System.out.println(e.getCause());
System.out.println(e.getCause().getMessage());
assertEquals("Connection Timeout", e.getMessage());
}
}

@Test(timeout = 10_000L)
public void testConnectTimeoutAuthorizedGet() throws FirebaseException {
app = FirebaseApp.initializeApp(FirebaseOptions.builder()
Expand Down

0 comments on commit 73e1355

Please sign in to comment.