Provoke chunk rotation in TestRemovedChunks.java JEP-349-branch
authoregahlin
Mon, 07 Oct 2019 15:52:38 +0200
branchJEP-349-branch
changeset 58476 28c81f635a5e
parent 58472 d345ae0fddc4
child 58478 78de3ec29f1e
Provoke chunk rotation in TestRemovedChunks.java
test/jdk/jdk/jfr/api/consumer/streaming/TestRemovedChunks.java
--- a/test/jdk/jdk/jfr/api/consumer/streaming/TestRemovedChunks.java	Mon Oct 07 14:27:25 2019 +0200
+++ b/test/jdk/jdk/jfr/api/consumer/streaming/TestRemovedChunks.java	Mon Oct 07 15:52:38 2019 +0200
@@ -80,6 +80,7 @@
             // Rotate and emit data that exceeds maxSize
             for (int i = 0; i< 10;i++) {
                 try (Recording r = new Recording()) {
+                    r.start();
                     emitData(1_000_000);
                 }
             }