8202094: jdk/jfr/api/recording/event/TestEventTime.java intermittently times out
authoregahlin
Mon, 04 Jun 2018 23:07:33 +0200
changeset 50390 f4c4a86d1c12
parent 50389 7e8c0409a747
child 50391 2bea53d7a27b
child 56664 8ff60b603991
8202094: jdk/jfr/api/recording/event/TestEventTime.java intermittently times out Reviewed-by: mgronlun
test/lib/jdk/test/lib/jfr/CommonHelper.java
--- a/test/lib/jdk/test/lib/jfr/CommonHelper.java	Mon Jun 04 23:01:48 2018 +0200
+++ b/test/lib/jdk/test/lib/jfr/CommonHelper.java	Mon Jun 04 23:07:33 2018 +0200
@@ -106,7 +106,7 @@
 
     public static void waitForSystemCurrentMillisToChange() {
         long t = System.currentTimeMillis();
-        while (t != System.currentTimeMillis()) {
+        while (t == System.currentTimeMillis()) {
             try {
                 Thread.sleep(2);
             } catch (InterruptedException e) {