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

Function test_exception_scenario1

tests/ce/server/test_update_weight.py:237–246  ·  view source on GitHub ↗

停止状态下请求

()

Source from the content-addressed store, hash-verified

235# 测试用例7:停止状态下请求
236# ---------------------------
237def test_exception_scenario1():
238 """
239 停止状态下请求
240 """
241 pause()
242 is_paused(expected=True)
243 infer(expect_success=False)
244 resume()
245 is_paused(expected=False)
246 infer(expect_success=True)
247
248
249# ---------------------------

Callers

nothing calls this directly

Calls 4

inferFunction · 0.85
pauseFunction · 0.70
is_pausedFunction · 0.70
resumeFunction · 0.70

Tested by

no test coverage detected