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

user_search_testcase::test_users_document random fail

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      master

      1. for i in `seq 1 30`; do vendor/bin/phpunit user/tests/search_test.php ; done
      2. Check that non of them fail

      31

      1. Add an activity with name "伟 张 伟 张"
      2. Set up global search with solr and index your site contents (you can use indexer.php with --reindex option if your site contents were already indexed)
      3. Search for 伟
      4. The returned results should include 伟 张
      Show
      master for i in `seq 1 30`; do vendor/bin/phpunit user/tests/search_test.php ; done Check that non of them fail 31 Add an activity with name "伟 张 伟 张" Set up global search with solr and index your site contents (you can use indexer.php with --reindex option if your site contents were already indexed) Search for 伟 The returned results should include 伟 张
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-55357_master

      Description

      Every now and again we get this failure (I guess when we get the 'problematic' characters):

      user_search_testcase::test_users_document
      Failed asserting that two strings are equal.
      --- Expected
      +++ Actual
      @@ @@
      -'伟 张'
      +'伟 ? '
      

      http://ci.stronk7.com/job/20.%20Run%20phpunit%20UnitTests%20(master)/8082/testReport/junit/(root)/user_search_testcase/test_users_document/

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dmonllao David Monllaó
                Reporter:
                poltawski Dan Poltawski
                Peer reviewer:
                Jun Pataleta
                Integrator:
                Dan Poltawski
                Tester:
                Rajesh Taneja
                Participants:
                Component watchers:
                Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Sep/16