You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2021/01/22 10:34:31 UTC

[tomcat] branch 7.0.x updated: Attempt to debug CI failures at GitHub

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/7.0.x by this push:
     new e03cd0f  Attempt to debug CI failures at GitHub
e03cd0f is described below

commit e03cd0f26eb964a2df049d3d256f46529cde8b9c
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Jan 22 10:33:02 2021 +0000

    Attempt to debug CI failures at GitHub
---
 test/org/apache/catalina/connector/TestSendFile.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/org/apache/catalina/connector/TestSendFile.java b/test/org/apache/catalina/connector/TestSendFile.java
index a4003cb..ede2121 100644
--- a/test/org/apache/catalina/connector/TestSendFile.java
+++ b/test/org/apache/catalina/connector/TestSendFile.java
@@ -80,7 +80,9 @@ public class TestSendFile extends TomcatBaseTest {
                 Assert.assertEquals(HttpServletResponse.SC_OK, rc);
                 System.out.println("Client received " + bc.getLength() + " bytes in "
                         + (System.currentTimeMillis() - start) + " ms.");
-                Assert.assertEquals(EXPECTED_CONTENT_LENGTH * (i + 1L), bc.getLength());
+                Assert.assertEquals("Expected [" + EXPECTED_CONTENT_LENGTH * (i + 1L) +
+                        "], was [" + bc.getLength() + "]",
+                        EXPECTED_CONTENT_LENGTH * (i + 1L), bc.getLength());
 
                 bc.recycle();
             }


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org