Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Oct 23, 2024
1 parent 65e3616 commit efe2a5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/debezium/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
}
{
Expand Down

0 comments on commit efe2a5d

Please sign in to comment.