From efe2a5dafd7be65c5b4cff5b7fd965c0b3de2c96 Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Wed, 23 Oct 2024 10:27:31 -0700 Subject: [PATCH] Clean up. --- lib/debezium/types_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/debezium/types_test.go b/lib/debezium/types_test.go index 9d384d6ac..f6ed3281a 100644 --- a/lib/debezium/types_test.go +++ b/lib/debezium/types_test.go @@ -284,14 +284,14 @@ func TestField_ParseValue(t *testing.T) { field := Field{Type: Int64, DebeziumType: MicroTime} value, err := field.ParseValue(int64(54720000000)) assert.NoError(t, err) - assert.Equal(t, "15:12:00.000000", value.(*ext.ExtendedTime).String("")) + assert.Equal(t, "15:12:00.000000", value.(*ext.ExtendedTime).GetTime().Format("15:04:05.000000")) } { // Nano time field := Field{Type: Int64, DebeziumType: NanoTime} value, err := field.ParseValue(int64(54720000000000)) assert.NoError(t, err) - assert.Equal(t, "15:12:00.000000000", value.(*ext.ExtendedTime).String("")) + assert.Equal(t, "15:12:00.000000000", value.(*ext.ExtendedTime).GetTime().Format("15:04:05.000000000")) } } {