From edc919dc84a521ec3a31de25fb01d7bd1279df6f Mon Sep 17 00:00:00 2001 From: huangguojie2024 <503601315@qq.com> Date: Wed, 29 Jan 2025 22:04:26 +0800 Subject: [PATCH] Fixed the assertion failure caused by network lag. --- .../bigtop/manager/dao/interceptor/AuditingInterceptorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigtop-manager-dao/src/test/java/org/apache/bigtop/manager/dao/interceptor/AuditingInterceptorTest.java b/bigtop-manager-dao/src/test/java/org/apache/bigtop/manager/dao/interceptor/AuditingInterceptorTest.java index 28b7ede0..b7a8558d 100644 --- a/bigtop-manager-dao/src/test/java/org/apache/bigtop/manager/dao/interceptor/AuditingInterceptorTest.java +++ b/bigtop-manager-dao/src/test/java/org/apache/bigtop/manager/dao/interceptor/AuditingInterceptorTest.java @@ -84,7 +84,7 @@ void testInterceptWithUpdateCommand() throws Throwable { // Assert update fields are set assertEquals(1L, entity.getUpdateBy()); - assertTrue(now.getTime() < entity.getUpdateTime().getTime()); + assertTrue(now.getTime() <= entity.getUpdateTime().getTime()); } @Test