Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-13216

Datetime tests fail randomly

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.1.0-RC6
    • 3.1.2-RC1
    • Test Suite
    • None

    Description

      The datetime unit tests randomly fail sometimes. This is one of the outputs that I encountered while running the tests:

      There were 4 failures:
       
      1) phpbb_datetime_from_format_test::test_relative_format_date with data set #0 ('2014-10-27 06:01', false, '2014-10-27 06:01')
      Failed asserting that two strings are equal.
      --- Expected
      +++ Actual
      @@ @@
      -'2014-10-27 06:01'
      +'Tomorrow 06:01'
       
      /home/marc/Dokumente/Entwicklung/phpbb/tests/datetime/from_format_test.php:124
       
      2) phpbb_datetime_from_format_test::test_relative_format_date with data set #1 ('2014-10-26 06:01', false, 'Tomorrow 06:01')
      Failed asserting that two strings are equal.
      --- Expected
      +++ Actual
      @@ @@
      -'Tomorrow 06:01'
      +'Today 06:01'
       
      /home/marc/Dokumente/Entwicklung/phpbb/tests/datetime/from_format_test.php:124
       
      3) phpbb_datetime_from_format_test::test_relative_format_date with data set #3 ('2014-10-25 06:01', false, 'Today 06:01')
      Failed asserting that two strings are equal.
      --- Expected
      +++ Actual
      @@ @@
      -'Today 06:01'
      +'Yesterday 06:01'
       
      /home/marc/Dokumente/Entwicklung/phpbb/tests/datetime/from_format_test.php:124
       
      4) phpbb_datetime_from_format_test::test_relative_format_date with data set #5 ('2014-10-24 06:01', false, 'Yesterday 06:01')
      Failed asserting that two strings are equal.
      --- Expected
      +++ Actual
      @@ @@
      -'Yesterday 06:01'
      +'2014-10-24 06:01'
       
      /home/marc/Dokumente/Entwicklung/phpbb/tests/datetime/from_format_test.php:124
      

      Attachments

        Activity

          People

            Marc Marc
            Marc Marc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: