TimerServer: use task_dispatcher.add_task instead of high level add_task
create_server returns either a BaseWSGIServer or a MultiSocketServer, but add_task only exists in BaseWSGIServer - and the implementation is simply [1]: def add_task(self, task): self.task_dispatcher.add_task(task) by using self.task_dispatcher.add_task directly, we are compatible with both cases. This is relevant when running timerserver with runUnitTest, where we create multiple sockets, one for http and one for web-dav. 1: https://github.com/Pylons/waitress/blob/v1.4.4/src/waitress/server.py#L290-L291
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#479148
external
|
ERP5.CodingStyleTest-TestRunner2 |
07:30:24
|
||||||
failed |
#479150
external
|
ERP5.UnitTest-TestRunner2 |
09:40:11
|
||||||
passed |
#478702
external
retried
|
ERP5.CodingStyleTest-TestRunner2 |
00:41:39
|
||||||
passed |
#478703
external
retried
|
ERP5.UnitTest-TestRunner2 |
01:32:26
|
||||||