Skip to content

Commit

Permalink
Fix Flaky Test
Browse files Browse the repository at this point in the history
This test depended on `_extDict` and `_noDict` compressing identically, which
is not a guarantee we make, AFAIK.
  • Loading branch information
felixhandte committed Sep 13, 2021
1 parent 2fcb407 commit 9c6e56f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/zstreamtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ static int basicUnitTests(U32 seed, double compressibility)
in.pos = 0;
in.size = CNBufferSize - in.size;
CHECK(!(ZSTD_compressStream2(cctx, &out, &in, ZSTD_e_end) == 0), "Not finished");
CHECK_Z(ZSTD_decompress(decodedBuffer, CNBufferSize, compressedBuffer, cSize));
CHECK_Z(ZSTD_decompress(decodedBuffer, CNBufferSize, compressedBuffer, out.pos));
DISPLAYLEVEL(3, "OK \n");

DISPLAYLEVEL(3, "test%3i : ZSTD_compressStream2() ZSTD_c_stableOutBuffer modify buffer : ", testNb++);
Expand Down

0 comments on commit 9c6e56f

Please sign in to comment.