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

duanzhengqiang 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 08cda4da368 Revise TimeRecorderTest (#23263)
08cda4da368 is described below

commit 08cda4da368d3de721d510ff40e4148685d1a5b8
Author: Liang Zhang <[email protected]>
AuthorDate: Mon Jan 2 19:14:50 2023 +0800

    Revise TimeRecorderTest (#23263)
---
 .../shardingsphere/agent/plugin/core/util/TimeRecorderTest.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/agent/plugins/core/src/test/java/org/apache/shardingsphere/agent/plugin/core/util/TimeRecorderTest.java
 
b/agent/plugins/core/src/test/java/org/apache/shardingsphere/agent/plugin/core/util/TimeRecorderTest.java
index 390faf5310f..7d85982b53f 100644
--- 
a/agent/plugins/core/src/test/java/org/apache/shardingsphere/agent/plugin/core/util/TimeRecorderTest.java
+++ 
b/agent/plugins/core/src/test/java/org/apache/shardingsphere/agent/plugin/core/util/TimeRecorderTest.java
@@ -23,7 +23,7 @@ import org.junit.Test;
 
 import static org.hamcrest.CoreMatchers.is;
 import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.Assert.assertTrue;
+import static org.hamcrest.Matchers.greaterThanOrEqualTo;
 
 public final class TimeRecorderTest {
     
@@ -37,7 +37,7 @@ public final class TimeRecorderTest {
     public void assertGetElapsedTimeWithRecorded() throws InterruptedException 
{
         TimeRecorder.INSTANCE.record();
         Thread.sleep(5L);
-        assertTrue(TimeRecorder.INSTANCE.getElapsedTime() >= 5L);
+        assertThat(TimeRecorder.INSTANCE.getElapsedTime(), 
greaterThanOrEqualTo(5L));
     }
     
     @Test

Reply via email to