From fd84e8655040392f56d432cdcb9d273b4b6e6d8d Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Fri, 24 Dec 2021 13:38:24 +0800 Subject: [PATCH] fix test framework --- tests/pytest/util/dnodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pytest/util/dnodes.py b/tests/pytest/util/dnodes.py index 0128c8caa2..397c56acd2 100644 --- a/tests/pytest/util/dnodes.py +++ b/tests/pytest/util/dnodes.py @@ -112,7 +112,7 @@ class TDSimClient: # update extra client config clientCfgkeys = ["clientMerge"] - if updatecfgDict[0] and updatecfgDict[0][0]: + if bool(updatecfgDict) and updatecfgDict[0] and updatecfgDict[0][0]: for key, value in updatecfgDict[0][0].items(): if key in clientCfgkeys: self.cfg(key, value) -- GitLab