Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-48054

test_automatic_with_subscribed_discussion_in_unsubscribed_forum fails randomly

    XMLWordPrintable

    Details

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

      Description

      test_automatic_with_subscribed_discussion_in_unsubscribed_forum() is failing randomly on master:

      http://ci.stronk7.com/job/20.%20Run%20phpunit%20UnitTests%20(master)/5354/
      http://ci.stronk7.com/job/20.%20Run%20phpunit%20UnitTests%20(master)/5347/

      I can reproduce this problem by running in a loop:

      while true; do vendor/bin/phpunit --filter=test_automatic_with_subscribed_discussion_in_unsubscribed_forum --stop-on-failure; done 
      Moodle 2.8beta+ (Build: 20141031), pgsql, 4e86f45a3e5f4992dafb3e760365a573f043d3e0
      PHPUnit 3.7.38 by Sebastian Bergmann.
       
      Configuration read from /Users/danp/moodles/im/moodle/phpunit.xml
       
      .
       
      Time: 10.39 seconds, Memory: 220.00Mb
       
      OK (1 test, 8 assertions)
      Moodle 2.8beta+ (Build: 20141031), pgsql, 4e86f45a3e5f4992dafb3e760365a573f043d3e0
      PHPUnit 3.7.38 by Sebastian Bergmann.
       
      Configuration read from /Users/danp/moodles/im/moodle/phpunit.xml
       
      .
       
      Time: 9.71 seconds, Memory: 220.00Mb
       
      OK (1 test, 8 assertions)
      Moodle 2.8beta+ (Build: 20141031), pgsql, 4e86f45a3e5f4992dafb3e760365a573f043d3e0
      PHPUnit 3.7.38 by Sebastian Bergmann.
       
      Configuration read from /Users/danp/moodles/im/moodle/phpunit.xml
       
      .
       
      Time: 9.6 seconds, Memory: 220.00Mb
       
      OK (1 test, 8 assertions)
      Moodle 2.8beta+ (Build: 20141031), pgsql, 4e86f45a3e5f4992dafb3e760365a573f043d3e0
      PHPUnit 3.7.38 by Sebastian Bergmann.
       
      Configuration read from /Users/danp/moodles/im/moodle/phpunit.xml
       
      FProcessing user 172000
      Processing user 172001
      Sending post 354000: Discussion 1
      1 users were sent post 354000, 'Discussion 1'
      Starting digest processing...
      Cleaned old digest records
       
       
      Time: 8.37 seconds, Memory: 220.25Mb
       
      There was 1 failure:
       
      1) mod_forum_mail_testcase::test_automatic_with_subscribed_discussion_in_unsubscribed_forum
      Failed asserting that 1 matches expected 2.
       
      /Users/danp/moodles/im/moodle/mod/forum/tests/mail_test.php:149
      /Users/danp/moodles/im/moodle/mod/forum/tests/mail_test.php:537
      /Users/danp/moodles/im/moodle/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit mod_forum_mail_testcase mod/forum/tests/mail_test.php
       
      FAILURES!
      Tests: 1, Assertions: 3, Failures: 1.
      Moodle 2.8beta+ (Build: 20141031), pgsql, 4e86f45a3e5f4992dafb3e760365a573f043d3e0
      PHPUnit 3.7.38 by Sebastian Bergmann.
       
      Configuration read from /Users/danp/moodles/im/moodle/phpunit.xml
       
      .
       
      Time: 9.46 seconds, Memory: 220.00Mb
       
      OK (1 test, 8 assertions)
      

      (Note the output on the run when it afails)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Nicols
              Reporter:
              poltawski Dan Poltawski
              Peer reviewer:
              Rajesh Taneja
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14