test: waiting for the program to be completely killed
This commit is contained in:
parent
0b6802aa60
commit
e4ea6c48be
|
@ -140,9 +140,11 @@ class TestServer:
|
||||||
if line:
|
if line:
|
||||||
print(line.strip())
|
print(line.strip())
|
||||||
if "succeed to write dnode" in line:
|
if "succeed to write dnode" in line:
|
||||||
time.sleep(15)
|
time.sleep(5)
|
||||||
# 发送终止信号
|
# 发送终止信号
|
||||||
os.kill(process.pid, signal.SIGTERM)
|
os.kill(process.pid, signal.SIGKILL)
|
||||||
|
# Waiting for the process to be completely killed
|
||||||
|
time.sleep(5)
|
||||||
break
|
break
|
||||||
|
|
||||||
@pytest.mark.all
|
@pytest.mark.all
|
||||||
|
|
Loading…
Reference in New Issue