You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2020/11/28 14:37:02 UTC
[shardingsphere] branch master updated: Fix failure when multiple
threads occur for ResourceLockTest (#8401)
This is an automated email from the ASF dual-hosted git repository.
panjuan 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 aedd793 Fix failure when multiple threads occur for ResourceLockTest (#8401)
aedd793 is described below
commit aedd79359f27447de603f2e5e9770ba7e4a1fd94
Author: Liang Zhang <te...@163.com>
AuthorDate: Sat Nov 28 22:36:40 2020 +0800
Fix failure when multiple threads occur for ResourceLockTest (#8401)
---
.../proxy/backend/communication/jdbc/connection/ResourceLockTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/connection/ResourceLockTest.java b/shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/connection/ResourceLockTest.java
index 8cbf673..e7f5b69 100644
--- a/shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/connection/ResourceLockTest.java
+++ b/shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/connection/ResourceLockTest.java
@@ -47,6 +47,6 @@ public final class ResourceLockTest {
resourceLock.doNotify();
});
resourceLock.doAwait();
- assertTrue(System.currentTimeMillis() - startTime < 200L);
+ assertTrue(System.currentTimeMillis() > startTime);
}
}