Skip to content

Commit

Permalink
Check-style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-jf committed Mar 14, 2024
1 parent 8b7817c commit e85e7e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/net/snowflake/client/jdbc/RestRequestTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,13 @@ public void testExceptionAuthBasedTimeout() throws IOException {
public void testExceptionAuthBasedTimeoutFor429ErrorCode() throws IOException {
CloseableHttpClient client = mock(CloseableHttpClient.class);
when(client.execute(any(HttpUriRequest.class)))
.thenAnswer((Answer<CloseableHttpResponse>) invocation -> retryLoginResponse());
.thenAnswer((Answer<CloseableHttpResponse>) invocation -> retryLoginResponse());

try {
execute(client, "login-request.com/?requestId=abcd-1234", 2, 1, 30000, true, false);
} catch (SnowflakeSQLException ex) {
assertThat(
ex.getErrorCode(), equalTo(ErrorCode.AUTHENTICATOR_REQUEST_TIMEOUT.getMessageCode()));
ex.getErrorCode(), equalTo(ErrorCode.AUTHENTICATOR_REQUEST_TIMEOUT.getMessageCode()));
}
}

Expand Down

0 comments on commit e85e7e5

Please sign in to comment.