You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by li...@apache.org on 2023/02/10 09:24:12 UTC
[tomcat] branch 9.0.x updated: Revert TestAsyncContextImpl.
This is an automated email from the ASF dual-hosted git repository.
lihan pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 17e7c48348 Revert TestAsyncContextImpl.
17e7c48348 is described below
commit 17e7c483489ab25ad00262b93c5fb47235ee8754
Author: lihan <li...@apache.org>
AuthorDate: Fri Feb 10 17:24:03 2023 +0800
Revert TestAsyncContextImpl.
---
test/org/apache/catalina/core/TestAsyncContextImpl.java | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/test/org/apache/catalina/core/TestAsyncContextImpl.java b/test/org/apache/catalina/core/TestAsyncContextImpl.java
index 1066c51b02..1ce2eebb3e 100644
--- a/test/org/apache/catalina/core/TestAsyncContextImpl.java
+++ b/test/org/apache/catalina/core/TestAsyncContextImpl.java
@@ -1521,10 +1521,15 @@ public class TestAsyncContextImpl extends TomcatBaseTest {
// 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();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org