You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2023/01/03 03:56:36 UTC

[shardingsphere] branch master updated: Fix UT error (#23280)

This is an automated email from the ASF dual-hosted git repository.

zhaojinchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 45da74d81ba Fix UT error (#23280)
45da74d81ba is described below

commit 45da74d81baffb3bc1520f801f17147be04a3a91
Author: Xinze Guo <10...@users.noreply.github.com>
AuthorDate: Tue Jan 3 11:56:29 2023 +0800

    Fix UT error (#23280)
---
 .../data/pipeline/cdc/util/ColumnValueConvertUtilTest.java              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/data-pipeline/cdc/core/src/test/java/org/apache/shardingsphere/data/pipeline/cdc/util/ColumnValueConvertUtilTest.java b/kernel/data-pipeline/cdc/core/src/test/java/org/apache/shardingsphere/data/pipeline/cdc/util/ColumnValueConvertUtilTest.java
index bf5dbf1266b..fc233c728b4 100644
--- a/kernel/data-pipeline/cdc/core/src/test/java/org/apache/shardingsphere/data/pipeline/cdc/util/ColumnValueConvertUtilTest.java
+++ b/kernel/data-pipeline/cdc/core/src/test/java/org/apache/shardingsphere/data/pipeline/cdc/util/ColumnValueConvertUtilTest.java
@@ -84,7 +84,7 @@ public final class ColumnValueConvertUtilTest {
         actualMessage = ColumnValueConvertUtil.convertToProtobufMessage(now);
         assertTrue(actualMessage instanceof com.google.protobuf.Timestamp);
         assertThat(((com.google.protobuf.Timestamp) actualMessage).getSeconds(), is(epochSecond));
-        actualMessage = ColumnValueConvertUtil.convertToProtobufMessage(new Date());
+        actualMessage = ColumnValueConvertUtil.convertToProtobufMessage(new Date(now.getTime()));
         assertTrue(actualMessage instanceof com.google.protobuf.Timestamp);
         assertThat(((com.google.protobuf.Timestamp) actualMessage).getSeconds(), is(epochSecond));
         actualMessage = ColumnValueConvertUtil.convertToProtobufMessage(now.toInstant());