diff --git a/tests/army/alter/alterConfig.py b/tests/army/alter/alterConfig.py index 7977dfa94a..6f709eb802 100644 --- a/tests/army/alter/alterConfig.py +++ b/tests/army/alter/alterConfig.py @@ -59,7 +59,7 @@ class TDTestCase(TBase): tdSql.execute("flush database db5291;") tdSql.execute("drop table ttltb2;") # restart taosd - os.system("ps -ef | grep taosd | grep -v grep | awk '{print $2}' | xargs kill -9") + sc.dnodeStopAll() sc.dnodeStart(1) sc.dnodeStart(2) sc.dnodeStart(3)