Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36034

Workaround for JENKINS-26578 breaks htmlunit tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • credentials-plugin
    • None

      e.g. https://jenkins.ci.cloudbees.com/job/plugins/job/ssh-slaves-plugin/136/org.jenkins-ci.plugins$ssh-slaves/testReport/hudson.plugins.sshslaves/SSHLauncherTest/testConfigurationRoundtrip/

      com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "firstChild" from undefined (http://localhost:51190/jenkins/static/143bdac1/scripts/hudson-behavior.js#405)
      

      Changing the hack to use window.setTimeout(function, 1); in place of (function)() fixes the tests and should not have user-visible side-effects

            stephenconnolly Stephen Connolly
            stephenconnolly Stephen Connolly
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: