Skip to content

Commit a7d0b26

Browse files
committed
Attempt to improve reliability of SamplerTest
1 parent 4b450bd commit a7d0b26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spark-common/src/test/java/me/lucko/spark/common/sampler/SamplerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public void testSampler(SamplerType samplerType, @TempDir Path directory) {
6060
Sampler sampler = new SamplerBuilder()
6161
.threadDumper(new ThreadDumper.Specific(thread))
6262
.threadGrouper(ThreadGrouper.BY_POOL)
63-
.samplingInterval(10)
63+
.samplingInterval(5)
6464
.forceJavaSampler(samplerType == SamplerType.JAVA)
65-
.completeAfter(2, TimeUnit.SECONDS)
65+
.completeAfter(5, TimeUnit.SECONDS)
6666
.start(plugin.platform());
6767

6868
String libraryVersion = sampler.getLibraryVersion();

0 commit comments

Comments
 (0)