remove the time guard on fdbcli commands in tests

This commit is contained in:
Chaoguang Lin 2023-03-01 11:09:47 -08:00
parent 1eae9270ff
commit e123a51b50
1 changed files with 4 additions and 8 deletions

View File

@ -50,14 +50,10 @@ def run_fdbcli_command(*args):
string: Console output from fdbcli
"""
commands = command_template + ["{}".format(" ".join(args))]
try:
# if the fdbcli command is stuck for more than 20 seconds, the database is definitely unavailable
process = subprocess.run(
commands, stdout=subprocess.PIPE, env=fdbcli_env, timeout=20
)
return process.stdout.decode("utf-8").strip()
except subprocess.TimeoutExpired:
raise Exception("The fdbcli command is stuck, database is unavailable")
process = subprocess.run(
commands, stdout=subprocess.PIPE, env=fdbcli_env
)
return process.stdout.decode("utf-8").strip()
def run_fdbcli_command_and_get_error(*args):