This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new 5e719fe Fix test failure when running under cobertura
5e719fe is described below
commit 5e719fec5b04676b79a4e57d1f55c1732d8323a2
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Feb 2 17:56:30 2021 +0000
Fix test failure when running under cobertura
---
test/org/apache/catalina/loader/TestVirtualWebappLoader.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/org/apache/catalina/loader/TestVirtualWebappLoader.java
b/test/org/apache/catalina/loader/TestVirtualWebappLoader.java
index 11d840e..8a158a9 100644
--- a/test/org/apache/catalina/loader/TestVirtualWebappLoader.java
+++ b/test/org/apache/catalina/loader/TestVirtualWebappLoader.java
@@ -54,6 +54,8 @@ public class TestVirtualWebappLoader extends TomcatBaseTest {
loader.setContext(ctx);
ctx.setLoader(loader);
+ ctx.setResources(new StandardRoot(ctx));
+ ctx.resourcesStart();
loader.start();
Assert.assertSame(cl, loader.getClassLoader());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]