You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by th...@apache.org on 2021/03/09 12:16:23 UTC

[tapestry-5] 02/02: Adding a bit of code to try to understand a test failure

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

thiagohp pushed a commit to branch 5.6.x
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git

commit 010ef5c4f614866c02112f6cdf2cb09a3b66c210
Author: Thiago H. de Paula Figueiredo <th...@arsmachina.com.br>
AuthorDate: Tue Mar 9 09:16:11 2021 -0300

    Adding a bit of code to try to understand a test failure
    
    in Jenkins,
    org.apache.tapestry5.integration.appfolder.AppFolderTests.asset_access
---
 .../org/apache/tapestry5/integration/appfolder/AppFolderTests.groovy   | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/appfolder/AppFolderTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/appfolder/AppFolderTests.groovy
index 5014730..39a3700 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/appfolder/AppFolderTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/appfolder/AppFolderTests.groovy
@@ -57,6 +57,9 @@ class AppFolderTests extends GroovyTapestryCoreTestCase
         String assetURL = getAttribute("//img/@src")
 
         // Selenium now (sometimes?) adds unwanted port & host
+        if (assetURL == null) {
+            println("Asset URL is null. HTML: " + getHtmlSource())
+        }
         if (assetURL.startsWith("http")) {
             assetURL = new URL(assetURL).getPath()
         }