Moodle

eventslib unit tests failing

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Events API, Unit tests
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

This looks very similar to MDL-16799 which claims to be fixed.

I am running on Postgres, and I get the following fails:

Error processing queue handler 22, missing handler id: 96

  • line 276 of lib/eventslib.php: call to debugging()
  • line 387 of lib/eventslib.php: call to events_process_queued_handler()
  • line 163 of lib/simpletest/testeventslib.php: call to events_cron()
  • line 72 of lib/simpletestlib/invoker.php: call to eventslib_test->test_events_trigger_cron()
  • line 137 of lib/simpletestlib/invoker.php: call to SimpleInvoker->invoke()
  • line 53 of lib/simpletestlib/errors.php: call to SimpleInvokerDecorator->invoke()
  • line 137 of lib/simpletestlib/invoker.php: call to SimpleErrorTrappingInvoker->invoke()
  • line 43 of lib/simpletestlib/exceptions.php: call to SimpleInvokerDecorator->invoke()
  • line 143 of lib/simpletestlib/test_case.php: call to SimpleExceptionTrappingInvoker->invoke()
  • line 610 of lib/simpletestlib/test_case.php: call to SimpleTestCase->run()
  • line 613 of lib/simpletestlib/test_case.php: call to TestSuite->run()
  • line 38 of admin/report/unittest/ex_simple_test.php: call to TestSuite->run()
  • line 90 of admin/report/unittest/index.php: call to AutoGroupTest->run()

Error processing queue handler 23, missing handler id: 96

  • line 276 of lib/eventslib.php: call to debugging()
  • line 387 of lib/eventslib.php: call to events_process_queued_handler()
  • line 163 of lib/simpletest/testeventslib.php: call to events_cron()
  • line 72 of lib/simpletestlib/invoker.php: call to eventslib_test->test_events_trigger_cron()
  • line 137 of lib/simpletestlib/invoker.php: call to SimpleInvoker->invoke()
  • line 53 of lib/simpletestlib/errors.php: call to SimpleInvokerDecorator->invoke()
  • line 137 of lib/simpletestlib/invoker.php: call to SimpleErrorTrappingInvoker->invoke()
  • line 43 of lib/simpletestlib/exceptions.php: call to SimpleInvokerDecorator->invoke()
  • line 143 of lib/simpletestlib/test_case.php: call to SimpleExceptionTrappingInvoker->invoke()
  • line 610 of lib/simpletestlib/test_case.php: call to SimpleTestCase->run()
  • line 613 of lib/simpletestlib/test_case.php: call to TestSuite->run()
  • line 38 of admin/report/unittest/ex_simple_test.php: call to TestSuite->run()
  • line 90 of admin/report/unittest/index.php: call to AutoGroupTest->run()

Error processing queue handler 24, missing handler id: 93

  • line 276 of lib/eventslib.php: call to debugging()
  • line 387 of lib/eventslib.php: call to events_process_queued_handler()
  • line 163 of lib/simpletest/testeventslib.php: call to events_cron()
  • line 72 of lib/simpletestlib/invoker.php: call to eventslib_test->test_events_trigger_cron()
  • line 137 of lib/simpletestlib/invoker.php: call to SimpleInvoker->invoke()
  • line 53 of lib/simpletestlib/errors.php: call to SimpleInvokerDecorator->invoke()
  • line 137 of lib/simpletestlib/invoker.php: call to SimpleErrorTrappingInvoker->invoke()
  • line 43 of lib/simpletestlib/exceptions.php: call to SimpleInvokerDecorator->invoke()
  • line 143 of lib/simpletestlib/test_case.php: call to SimpleExceptionTrappingInvoker->invoke()
  • line 610 of lib/simpletestlib/test_case.php: call to SimpleTestCase->run()
  • line 613 of lib/simpletestlib/test_case.php: call to TestSuite->run()
  • line 38 of admin/report/unittest/ex_simple_test.php: call to TestSuite->run()
  • line 90 of admin/report/unittest/index.php: call to AutoGroupTest->run()

Fail: lib/simpletest/testeventslib.php / ? eventslib_test / ? test__events_pending_count
two events should in queue: Equal expectation fails because [Integer: 2] differs from [Integer: 0] by 2 at [/home/tim/Workspace/moodle_head/lib/simpletest/testeventslib.php line 173]
Fail: lib/simpletest/testeventslib.php / ? eventslib_test / ? test_events_trigger_failed_instant
this one should fail too: Equal expectation fails because [Integer: 1] differs from [Integer: 0] by 1 at [/home/tim/Workspace/moodle_head/lib/simpletest/testeventslib.php line 183]
Fail: lib/simpletest/testeventslib.php / ? eventslib_test / ? test_events_trigger_failed_instant
two events should in queue: Equal expectation fails because [Integer: 2] differs from [Integer: 0] by 2 at [/home/tim/Workspace/moodle_head/lib/simpletest/testeventslib.php line 185]
Fail: lib/simpletest/testeventslib.php / ? eventslib_test / ? test_events_trigger_failed_instant
verify no event dispatched yet: Equal expectation fails because [Integer: 0] differs from [Integer: 1] by 1 at [/home/tim/Workspace/moodle_head/lib/simpletest/testeventslib.php line 186]
Fail: lib/simpletest/testeventslib.php / ? eventslib_test / ? test_events_trigger_failed_instant
this one should go to queue directly: Equal expectation fails because [Integer: 1] differs from [Integer: 0] by 1 at [/home/tim/Workspace/moodle_head/lib/simpletest/testeventslib.php line 188]
Fail: lib/simpletest/testeventslib.php / ? eventslib_test / ? test_events_trigger_failed_instant
three events should in queue: Equal expectation fails because [Integer: 3] differs from [Integer: 0] by 3 at [/home/tim/Workspace/moodle_head/lib/simpletest/testeventslib.php line 189]
Fail: lib/simpletest/testeventslib.php / ? eventslib_test / ? test_events_trigger_failed_instant
verify previous event was not dispatched: Equal expectation fails because [Integer: 0] differs from [Integer: 2] by 2 at [/home/tim/Workspace/moodle_head/lib/simpletest/testeventslib.php line 190]
Fail: lib/simpletest/testeventslib.php / ? eventslib_test / ? test_events_trigger_failed_instant
all events should be dispatched: Equal expectation fails because [Integer: 3] differs from [Integer: 0] by 3 at [/home/tim/Workspace/moodle_head/lib/simpletest/testeventslib.php line 191]
Fail: lib/simpletest/testeventslib.php / ? eventslib_test / ? test_events_trigger_failed_instant
verify three events were dispatched: Equal expectation fails because [Integer: 3] differs from [Integer: 2] by 1 at [/home/tim/Workspace/moodle_head/lib/simpletest/testeventslib.php line 192]
Fail: lib/simpletest/testeventslib.php / ? eventslib_test / ? test_events_trigger_failed_instant
verify event was dispatched: Equal expectation fails because [Integer: 4] differs from [Integer: 3] by 1 at [/home/tim/Workspace/moodle_head/lib/simpletest/testeventslib.php line 195]

Activity

Hide
Petr Škoda (skodak) added a comment -

I have fixed these recently, thanks for the report.

Show
Petr Škoda (skodak) added a comment - I have fixed these recently, thanks for the report.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: