Fix bug in TestStartEndTime.java JEP-349-branch
authoregahlin
Wed, 23 Oct 2019 23:47:56 +0200
branchJEP-349-branch
changeset 58771 e6feb2874fa6
parent 58770 481870c3d258
child 58774 141412e96b12
Fix bug in TestStartEndTime.java
test/jdk/jdk/jfr/api/consumer/recordingstream/TestSetEndTime.java
--- a/test/jdk/jdk/jfr/api/consumer/recordingstream/TestSetEndTime.java	Wed Oct 23 23:23:18 2019 +0200
+++ b/test/jdk/jdk/jfr/api/consumer/recordingstream/TestSetEndTime.java	Wed Oct 23 23:47:56 2019 +0200
@@ -60,7 +60,7 @@
     }
 
     public static void main(String... args) throws Exception {
-     //   testEventStream();
+        testEventStream();
         testRecordingStream();
     }
 
@@ -77,7 +77,7 @@
                 rs.onClose(() -> {
                     closed.countDown();
                 });
-                Instant endTime = Instant.now().plus(Duration.ofMillis(10_000));
+                Instant endTime = Instant.now().plus(Duration.ofMillis(100));
                 System.out.println("Setting end time: " + endTime);
                 rs.setEndTime(endTime);
                 rs.startAsync();