diff --git a/tests/system-test/0-others/udfTest.py b/tests/system-test/0-others/udfTest.py index 93de0f7c5654a9b384b64eae4416ef8ebd7bffdf..342b5685a0edc488481c6a81c16210fd480edbd2 100644 --- a/tests/system-test/0-others/udfTest.py +++ b/tests/system-test/0-others/udfTest.py @@ -621,6 +621,8 @@ class TDTestCase: def restart_taosd_query_udf(self): + self.create_udf_function() + for i in range(5): tdLog.info(" this is %d_th restart taosd " %i) tdSql.execute("use db ") @@ -634,7 +636,6 @@ class TDTestCase: time.sleep(2) - def run(self): # sourcery skip: extract-duplicate-method, remove-redundant-fstring print(" env is ok for all ") @@ -643,14 +644,15 @@ class TDTestCase: self.create_udf_function() self.basic_udf_query() self.loop_kill_udfd() - #self.restart_taosd_query_udf() + self.unexpected_create() tdSql.execute(" drop function udf1 ") tdSql.execute(" drop function udf2 ") self.create_udf_function() - sleep(2) + time.sleep(2) self.basic_udf_query() self.test_function_name() + self.restart_taosd_query_udf()