From 73aeda01baefc166319917882a435d36af04bc40 Mon Sep 17 00:00:00 2001 From: Yaroslav Lepenkin Date: Thu, 20 Apr 2017 17:50:21 +0300 Subject: [PATCH] [stats collector] fixed failing tests on windows 2 --- .../com/intellij/stats/completion/storage/StorageTest.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/stats-collector/test/com/intellij/stats/completion/storage/StorageTest.kt b/plugins/stats-collector/test/com/intellij/stats/completion/storage/StorageTest.kt index 9ddf4f146c9d..72b787cbc900 100644 --- a/plugins/stats-collector/test/com/intellij/stats/completion/storage/StorageTest.kt +++ b/plugins/stats-collector/test/com/intellij/stats/completion/storage/StorageTest.kt @@ -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()) }