Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: Unit tests
    • Labels:

      Description

      The following unit test failures appear to be caused by missing proxy settings:

      3) moodlesimplepie_testcase::test_getfeed
      Failed to load the sample RSS file. Please check your proxy settings in Moodle. %s
      Failed asserting that 'cURL Error: couldn't connect to host' is null.
      
      C:\Users\sm449\workspace\core-moodle-github\lib\tests\rsslib_test.php:56
      C:\Users\sm449\workspace\core-moodle-github\lib\phpunit\lib.php:1058
      C:\Program Files (x86)\PHP\phpunit:46
      
      4) moodlesimplepie_testcase::test_redirect
      Failed asserting that 'cURL Error: connect() timed out!' is null.
      
      C:\Users\sm449\workspace\core-moodle-github\lib\tests\rsslib_test.php:140
      C:\Users\sm449\workspace\core-moodle-github\lib\phpunit\lib.php:1058
      C:\Program Files (x86)\PHP\phpunit:46
      

      I think when creating the test database environment/config, it should initialise the proxyhost (etc) variables from the real config table, and it probably isn't.

      Note: this is just my assumption, if you need me to debug it more, I can do so.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  25/Jun/12