Skip to content

Commit 9a5c4b2

Browse files
Coder-256luben
authored andcommitted
Fix flaky test
1 parent 475ed5d commit 9a5c4b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/scala/Zstd.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ class ZstdSpec extends AnyFlatSpec with ScalaCheckPropertyChecks {
12841284
Using.Manager { use =>
12851285
val cctx = use(new ZstdCompressCtx())
12861286

1287-
forAll(minSize(32)) { input: Array[Byte] =>
1287+
forAll { input: Array[Byte] => whenever (input.length >= 32)
12881288
{
12891289
val size = input.length
12901290
val inputBuffer = ByteBuffer.allocateDirect(size)

0 commit comments

Comments
 (0)