Skip to content

Commit b82dc2a

Browse files
committed
Fix file size in test
1 parent e3aebbd commit b82dc2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/groovy/edu/ie3/util/io/FileIOUtilsTest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class FileIOUtilsTest extends Specification {
9090
then:
9191
noExceptionThrown()
9292
Files.exists(archiveFile)
93-
Files.size(archiveFile) >= 1511 && Files.size(archiveFile) <= 1605 // Should be around 1558 bytes +/- 3 %
93+
Files.size(archiveFile) >= 1317 && Files.size(archiveFile) <= 1399 // Should be around 1385 bytes +/- 3 %
9494
}
9595

9696
def "The fileio utils is able to zip the contents of a directory with nested structure to .tar.gz"() {
@@ -105,7 +105,7 @@ class FileIOUtilsTest extends Specification {
105105
then:
106106
noExceptionThrown()
107107
Files.exists(archiveFile)
108-
Files.size(archiveFile) >= 1578 && Files.size(archiveFile) <= 1676 // Should be around 1627 bytes +/- 3 %
108+
Files.size(archiveFile) >= 1384 && Files.size(archiveFile) <= 1427 // Should be around 1427 bytes +/- 3 %
109109
}
110110

111111
def "The fileio utils throws an exception, if the input path is null when called to compress a file"() {

0 commit comments

Comments
 (0)