mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[stats collector] fixed failing tests on windows 2
This commit is contained in:
@@ -68,10 +68,12 @@ class AsciiMessageStorageTest {
|
||||
val line = "text"
|
||||
storage.appendLine(line)
|
||||
storage.appendLine(line)
|
||||
assertThat(storage.size).isEqualTo(2 * (line.length + System.lineSeparator().length))
|
||||
|
||||
val expectedSize = 2 * (line.length + System.lineSeparator().length)
|
||||
assertThat(storage.size).isEqualTo(expectedSize)
|
||||
|
||||
storage.dump(tmpFile)
|
||||
assertThat(tmpFile.length()).isEqualTo(10)
|
||||
assertThat(tmpFile.length()).isEqualTo(expectedSize.toLong())
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user