Update test JEP-349-branch
authoregahlin
Thu, 29 Aug 2019 19:40:37 +0200
branchJEP-349-branch
changeset 57949 74a38c0b5054
parent 57948 59ad17a19e24
child 57971 aa7b1ea52413
Update test
test/jdk/jdk/jfr/api/consumer/recordingstream/TestSetEndTime.java
--- a/test/jdk/jdk/jfr/api/consumer/recordingstream/TestSetEndTime.java	Thu Aug 29 19:38:54 2019 +0200
+++ b/test/jdk/jdk/jfr/api/consumer/recordingstream/TestSetEndTime.java	Thu Aug 29 19:40:37 2019 +0200
@@ -59,14 +59,14 @@
             r.setFlushInterval(Duration.ofSeconds(1));
             r.start();
             Mark event1 = new Mark();
+            event1.begin();  // start time
             event1.before = true;
             advanceClock();
-            event1.commit(); // start time
+            event1.commit();
 
             Mark event2 = new Mark();
             event2.begin();  // end time
             advanceClock();
-          //  event2.end();
             Thread.sleep(100);
             event2.before = false;
             event2.commit();
@@ -85,7 +85,7 @@
                     System.out.println("End  : " + end);
                 }
             }
-
+            System.out.println("===================");
             AtomicBoolean error = new AtomicBoolean(true);
             try (EventStream d = EventStream.openRepository()) {
                 d.setStartTime(start);