Skip to content

Commit

Permalink
Revert TestAsyncContextImpl.
Browse files Browse the repository at this point in the history
  • Loading branch information
aooohan committed Feb 10, 2023
1 parent 03ae043 commit 1b90313
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions test/org/apache/catalina/core/TestAsyncContextImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1521,10 +1521,15 @@ protected void doGet(final HttpServletRequest req,
// Just for debugging
async.setTimeout(100000);

try (ExecutorService executor = Executors.newSingleThreadExecutor()) {
executor.submit(() -> async.dispatch("/ServletC"));
executor.shutdown();
}
ExecutorService executor = Executors.newSingleThreadExecutor();
executor.submit(new Runnable() {

@Override
public void run() {
async.dispatch("/ServletC");
}
});
executor.shutdown();
}
}

Expand Down

0 comments on commit 1b90313

Please sign in to comment.