Issue Details (XML | Word | Printable)

Key: MDL-18743
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: moodle.com
Reporter: Tim Hunt
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

eventslib unit tests failing

Created: 30/Mar/09 10:04 AM   Updated: 13/Nov/09 04:08 PM
Return to search
Component/s: Events API, Unit tests
Affects Version/s: 2.0
Fix Version/s: 2.0

Participants: moodle.com and Tim Hunt
Security Level: None
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
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]

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Tim Hunt made changes - 30/Mar/09 10:04 AM
Field Original Value New Value
Assignee Martin Dougiamas [ dougiamas ] Nicolas Connault [ nicolasconnault ]
Martin Dougiamas made changes - 13/Nov/09 04:08 PM
Assignee Nicolas Connault [ nicolasconnault ] moodle.com [ moodle.com ]