From 629b639bf0324d6047608be0c65f16bc2b0ea7c8 Mon Sep 17 00:00:00 2001 From: Ping Xiao Date: Thu, 2 Jun 2022 17:14:03 +0800 Subject: [PATCH] test: add test case for TD-16216 --- tests/pytest/insert/line_insert.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/pytest/insert/line_insert.py b/tests/pytest/insert/line_insert.py index 79c318c344..8beb6ba01e 100644 --- a/tests/pytest/insert/line_insert.py +++ b/tests/pytest/insert/line_insert.py @@ -208,6 +208,14 @@ class TDTestCase: tdSql.query("select * from type_json5") tdSql.checkData(0, 2, '''{"jsonC":"0"}''') + try: + self._conn.schemaless_insert([ + "measurement,host=host1 field1=12i,field2=2.0,fieldKey=\"Launch\" 1654078242716", + "measurement,host=host1" + ], TDSmlProtocolType.LINE.value, TDSmlTimestampType.MILLI_SECOND.value) + tdLog.exit("%s failed: no exception happen here" % __file__) + except Exception as e: + pass def stop(self): tdSql.close() -- GitLab