Skip to content

Commit

Permalink
ADBDEV-4011: Fix merge issue with Spring Boot Version 2.4.3
Browse files Browse the repository at this point in the history
Spring Boot Version 2.4.3 adds org.mockito package with version 3.6.8. There is a bug with this version: mockito/mockito#2545
So we need to keep additional invocation.
  • Loading branch information
RomaZe committed Jul 25, 2023
1 parent 9aa9284 commit 1bd7fe0
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -293,6 +293,17 @@ public void getTableFailedToConnectToMetastoreFiveRetries3rdSuccess() throws Exc
}
return null;
},
// placebo run through
// the second to last invocation keeps getting skipped so place this here as a placebo
// https://github.com/mockito/mockito/pull/2545
invocation -> {
if (invocation.getMethod().getName().equals("get_table_req")) {
throw new TApplicationException("fallback ???");
} else if (invocation.getMethod().getName().equals("get_table")) {
throw new TTransportException("oops. where's the metastore? ???");
}
return null;
},
// final run through (retry 3 = success)
invocation -> {
if (invocation.getMethod().getName().equals("get_table_req")) {
Expand Down

0 comments on commit 1bd7fe0

Please sign in to comment.