From 93489c86703e50769381c76a8ca5869b56deedf3 Mon Sep 17 00:00:00 2001 From: HTHou Date: Fri, 27 Sep 2024 16:48:01 +0800 Subject: [PATCH] fix IT --- client/rpcdataset_test.go | 6 +++--- client/tablet_test.go | 6 +++--- test/e2e/e2e_test.go | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/client/rpcdataset_test.go b/client/rpcdataset_test.go index 0e3ed08..82dd3b0 100644 --- a/client/rpcdataset_test.go +++ b/client/rpcdataset_test.go @@ -39,7 +39,7 @@ func createIoTDBRpcDataSet() *IoTDBRpcDataSet { "root.ln.device1.description_string", "root.ln.device1.description_blob", "root.ln.device1.date", - "root.ln.device1.timestamp", + "root.ln.device1.ts", } dataTypes := []string{"INT32", "DOUBLE", "INT64", "FLOAT", "TEXT", "BOOLEAN", "STRING", "BLOB", "DATE", "TIMESTAMP"} columnNameIndex := map[string]int32{ @@ -52,7 +52,7 @@ func createIoTDBRpcDataSet() *IoTDBRpcDataSet { "root.ln.device1.description_string": 6, "root.ln.device1.description_blob": 7, "root.ln.device1.date": 8, - "root.ln.device1.timestamp": 9, + "root.ln.device1.ts": 9, } var queyrId int64 = 1 var sessionId int64 = 1 @@ -603,7 +603,7 @@ func TestIoTDBRpcDataSet_getRowRecord(t *testing.T) { dataType: DATE, value: time.Date(2024, time.April, 1, 0, 0, 0, 0, time.UTC), }, { - name: "root.ln.device1.timestamp", + name: "root.ln.device1.ts", dataType: TIMESTAMP, value: int64(3333333), }, diff --git a/client/tablet_test.go b/client/tablet_test.go index 6161735..e4ecb73 100644 --- a/client/tablet_test.go +++ b/client/tablet_test.go @@ -60,7 +60,7 @@ func createTablet(size int) (*Tablet, error) { DataType: DATE, }, { - Measurement: "timestamp", + Measurement: "ts", DataType: TIMESTAMP, }, }, size) @@ -113,7 +113,7 @@ func TestTablet_getDataTypes(t *testing.T) { Measurement: "date", DataType: DATE, }, { - Measurement: "timestamp", + Measurement: "ts", DataType: TIMESTAMP, }, }, @@ -297,7 +297,7 @@ func TestTablet_SetValueAt(t *testing.T) { }, wantErr: false, }, { - name: "timestamp", + name: "ts", args: args{ value: int64(1608268702780), columnIndex: 9, diff --git a/test/e2e/e2e_test.go b/test/e2e/e2e_test.go index 7a9b218..8f3db35 100644 --- a/test/e2e/e2e_test.go +++ b/test/e2e/e2e_test.go @@ -193,7 +193,7 @@ func (s *e2eTestSuite) Test_InsertAlignedRecordsOfOneDevice() { measurementsSlice = [][]string{ {"restart_count", "tick_count", "price"}, {"temperature", "description", "status"}, - {"description_blob", "date", "timestamp"}, + {"description_blob", "date", "ts"}, } dataTypes = [][]client.TSDataType{ {client.INT32, client.INT64, client.DOUBLE},