testing: fix resource warning with ManagedHTTPServer
We fork a subprocess to serve requests, but the listening socket is bound in server constructor and inherited by subprocess. With this pattern, we have to explicitly close the socket from parent process to prevent the leak.
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#275595
external
|
SlapOS-Master.UnitTest-Master |
01:18:00
|
||||||
passed |
#275783
external
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:12:46
|
||||||
passed |
#275795
external
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:23:56
|
||||||
failed |
#275605
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
01:15:30
|
||||||
failed |
#275650
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:10:17
|
||||||
failed |
#275679
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
01:05:01
|
||||||
passed |
#275759
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:20:34
|
||||||
passed |
#275663
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:20:50
|
||||||
passed |
#275774
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
|
||||||
passed |
#275689
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:23:15
|
||||||
passed |
#275618
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:14:13
|
||||||
passed |
#275633
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:22:08
|
||||||
passed |
#275746
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:21:23
|
||||||