Skip to content

Commit

Permalink
Prevent NoSuchElementException in MockSupport after earlier error
Browse files Browse the repository at this point in the history
  • Loading branch information
famod committed Feb 25, 2022
1 parent d14c12e commit 5511255
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ static void pushContext() {
}

static void popContext() {
if (contexts.isEmpty()) {
return; // can happen on error in QuarkusTestResourceLifecycleManagers etc.
}
List<Object> val = contexts.pop();
for (Object i : val) {
try {
Expand Down

0 comments on commit 5511255

Please sign in to comment.