ProcessingNodeTestCase: also setRequest in processing_node
This is done on the process running test (by ERP5TypeTestCaseRequestConnection) and when using timerserver loop (by TimerServer which calls publish_module), but this was never set in processing_node. Before 3b874e49 (ERP5Type/tests: review requests in tests, 2023-04-19) getRequest could find a request anyway, because the test pached getRequest to find a request from the app, but after this change executing activities in an instance running with runUnitTest without test specified failed with: Module importlib, line 37, in import_module __import__(name) Module Products.ERP5Type.dynamic.component_package, line 412, in load_module return self.__load_module(fullname) Module Products.ERP5Type.dynamic.component_package, line 379, in __load_module erp5.component.ref_manager.add_module(module) Module Products.ERP5Type.dynamic.dynamic_module, line 75, in add_module self.add_request(get_request()) Module Products.ERP5Type.dynamic.dynamic_module, line 53, in add_request self.setdefault(last_sync, (WeakSet(), set()))[0].add(request_obj) Module _weakrefset, line 86, in add self.data.add(ref(item, self._remove)) TypeError: cannot create weak reference to 'NoneType' object ( maybe we remove processing_node and use only timerserver, these two methods are more or less equivalent for simple cases and timerserver is closer to what a "real" zope does )
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#590736
external
|
ERP5.CodingStyleTest-Master |
01:05:21
|
||||||
passed |
#590715
external
|
ERP5.CodingStyleTest-TestRunner1 |
01:01:13
|
||||||
passed |
#590775
external
|
ERP5.PerformanceTest-Master |
00:26:55
|
||||||
passed |
#590722
external
|
ERP5.PerformanceTest-TestRunner1 |
00:26:46
|
||||||
failed |
#590735
external
|
ERP5.UnitTest-Master |
01:28:25
|
||||||
failed |
#590717
external
|
ERP5.UnitTest-TestRunner1 |
02:03:56
|
||||||
failed |
#590777
external
|
ERP5.UnitTest-Zope2 |
04:07:58
|
||||||
failed |
#590716
external
|
ERP5.UnitTest-Zope2-ForTestRunner1 |
02:01:01
|
||||||
passed |
#590746
external
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:14:29
|
||||||
passed |
#590762
external
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:14:39
|
||||||
passed |
#590802
external
|
Wendelin.UnitTest-Master |
00:28:43
|
||||||
failed |
#590737
external
retried
|
Wendelin.UnitTest-Master |
00:39:04
|
||||||