Skip to content

Commit b554d3d

Browse files
committed
Update cache file test threshold
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent 67096c9 commit b554d3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/compile/compile_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ func TestCacheFileSize(t *testing.T) {
254254
t.Fatalf("Failed to stat cache file: %v", err)
255255
}
256256

257-
if fi.Size() < 50000000 {
257+
// yara-x 1.10.0 reduced compiled ruleset sizes
258+
// originally 50000000
259+
if fi.Size() < 30000000 {
258260
t.Fatalf("Cache file seems too small: %d bytes", fi.Size())
259261
}
260262

0 commit comments

Comments
 (0)