MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / test_reentrant2

Function test_reentrant2

tests/ce/server/test_update_weight.py:215–231  ·  view source on GitHub ↗

重入调用测试: 1. pause 2. resume 3. continue 9 times

()

Source from the content-addressed store, hash-verified

213# 测试用例6:大量重启服务
214# ---------------------------
215def test_reentrant2():
216 """
217 重入调用测试:
218 1. pause
219 2. resume
220 3. continue 9 times
221 """
222 for i in range(9):
223 pause()
224 resume()
225 is_paused(expected=False)
226 for i in range(9):
227 resume()
228 pause()
229 is_paused(expected=True)
230 resume()
231 is_paused(expected=False)
232
233
234# ---------------------------

Callers

nothing calls this directly

Calls 3

pauseFunction · 0.70
resumeFunction · 0.70
is_pausedFunction · 0.70

Tested by

no test coverage detected