aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject aries-rsa git commit: Simplify test
Date Wed, 03 May 2017 07:41:43 GMT
Repository: aries-rsa
Updated Branches:
  refs/heads/master 56159ea58 -> 4bd3d757c


Simplify test


Project: http://git-wip-us.apache.org/repos/asf/aries-rsa/repo
Commit: http://git-wip-us.apache.org/repos/asf/aries-rsa/commit/4bd3d757
Tree: http://git-wip-us.apache.org/repos/asf/aries-rsa/tree/4bd3d757
Diff: http://git-wip-us.apache.org/repos/asf/aries-rsa/diff/4bd3d757

Branch: refs/heads/master
Commit: 4bd3d757c33e5833ec611c2b690e99c5d94882d3
Parents: 56159ea
Author: Christian Schneider <chris@die-schneider.net>
Authored: Wed May 3 09:41:36 2017 +0200
Committer: Christian Schneider <chris@die-schneider.net>
Committed: Wed May 3 09:41:36 2017 +0200

----------------------------------------------------------------------
 .../apache/aries/rsa/itests/felix/rsa/TestRSAListener.java  | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/4bd3d757/itests/felix/src/test/java/org/apache/aries/rsa/itests/felix/rsa/TestRSAListener.java
----------------------------------------------------------------------
diff --git a/itests/felix/src/test/java/org/apache/aries/rsa/itests/felix/rsa/TestRSAListener.java
b/itests/felix/src/test/java/org/apache/aries/rsa/itests/felix/rsa/TestRSAListener.java
index cc287db..9dea585 100644
--- a/itests/felix/src/test/java/org/apache/aries/rsa/itests/felix/rsa/TestRSAListener.java
+++ b/itests/felix/src/test/java/org/apache/aries/rsa/itests/felix/rsa/TestRSAListener.java
@@ -80,12 +80,9 @@ public class TestRSAListener extends RsaTestBase implements RemoteServiceAdminLi
     }
 
     private synchronized void waitEvent() throws InterruptedException, TimeoutException {
-        long start = System.currentTimeMillis();
-        while (this.lastEvent == null) {
-            this.wait(1000);
-            if (System.currentTimeMillis() - start > 2000) {
-                throw new TimeoutException("Timeout waiting for Event");
-            }
+        this.wait(2000);
+        if (this.lastEvent == null) {
+            throw new TimeoutException("Timeout waiting for Event");
         }
     }
 


Mime
View raw message