changeset 50994:f4c4a86d1c12

8202094: jdk/jfr/api/recording/event/TestEventTime.java intermittently times out Reviewed-by: mgronlun
author egahlin
date Mon, 04 Jun 2018 23:07:33 +0200
parents 7e8c0409a747
children 2bea53d7a27b
files test/lib/jdk/test/lib/jfr/CommonHelper.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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) {