Skip to content

Commit

Permalink
remove context finally
Browse files Browse the repository at this point in the history
  • Loading branch information
xloya committed Sep 13, 2024
1 parent 4527215 commit 3e6d5b1
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,13 @@ public void testGetFileLocation() {
.thenAnswer(
(Answer<String>)
invocation -> {
CallerContext context = CallerContext.CallerContextHolder.get();
callerContextMap.putAll(context.context());
return subPath2;
try {
CallerContext context = CallerContext.CallerContextHolder.get();
callerContextMap.putAll(context.context());
return subPath2;
} finally {
CallerContext.CallerContextHolder.remove();
}
});
Response resp4 =
target(filesetPath(metalake, catalog, schema) + "fileset3/location")
Expand Down

0 comments on commit 3e6d5b1

Please sign in to comment.