Skip to content

Commit

Permalink
Improved test stability
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinZiabek committed Jul 22, 2024
1 parent 7bbc41e commit 446c656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/QuestPDF.UnitTests/DocumentCompressionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void Test()
var sizeRatio = withoutCompression.documentSize / (float)withCompression.documentSize;
sizeRatio.Should().BeGreaterThan(3);

(withCompression.generationTime / withoutCompression.generationTime).Should().BeLessThan(1.5f);
(withCompression.generationTime / withoutCompression.generationTime).Should().BeLessThan(2f);

(int documentSize, float generationTime) MeasureDocumentSizeAndGenerationTime(bool compress)
{
Expand Down

0 comments on commit 446c656

Please sign in to comment.