mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
fix(pytests): replace proc.wait() with proc.communicate() to avoid deadlocks (#2964)
* replace proc.wait() with proc.communicate() to avoid deadlocks
This commit is contained in:
parent
82dd05fe30
commit
bbe6c8579a
1 changed files with 1 additions and 2 deletions
|
@ -169,8 +169,7 @@ class DflyInstance:
|
|||
proc.kill()
|
||||
else:
|
||||
proc.terminate()
|
||||
if proc.wait(timeout=15) < 0 and not kill:
|
||||
raise Exception("Dragfonfly did not terminate gracefully")
|
||||
proc.communicate(timeout=15)
|
||||
|
||||
except subprocess.TimeoutExpired:
|
||||
# We need to send SIGUSR1 to DF such that it prints the stacktrace
|
||||
|
|
Loading…
Reference in a new issue