From 680455b162803ad0abe8a5f5e1874cc342354376 Mon Sep 17 00:00:00 2001 From: Dmitrii Krasnov Date: Thu, 2 Nov 2023 12:13:29 +0100 Subject: [PATCH] [FUS Tests] Changed expected hash in module changes It changed in b9090e12 commit without updating it into the test #KT-62987 Fixed --- .../jetbrains/kotlin/statistics/ModuleChangesCatchingTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/tools/kotlin-gradle-statistics/src/test/kotlin/org/jetbrains/kotlin/statistics/ModuleChangesCatchingTest.kt b/libraries/tools/kotlin-gradle-statistics/src/test/kotlin/org/jetbrains/kotlin/statistics/ModuleChangesCatchingTest.kt index 2a6f5deaee5..c9149a5aef7 100644 --- a/libraries/tools/kotlin-gradle-statistics/src/test/kotlin/org/jetbrains/kotlin/statistics/ModuleChangesCatchingTest.kt +++ b/libraries/tools/kotlin-gradle-statistics/src/test/kotlin/org/jetbrains/kotlin/statistics/ModuleChangesCatchingTest.kt @@ -30,7 +30,7 @@ private val SOURCE_FOLDER_EXPECTED_VERSION_AND_HASH = STRING_METRICS_EXPECTED_VERSION_AND_HASH.first + BOOLEAN_METRICS_EXPECTED_VERSION_AND_HASH.first + NUMERICAL_METRICS_EXPECTED_VERSION_AND_HASH.first, - "f29e701b7feebf67b184a74ec0cb543d" + "ce47debcab820f23e0ea1333d4124e9e" ) private const val HASH_ALG = "MD5" @@ -114,6 +114,7 @@ class ModuleChangesCatchingTest { .walk() .filter { file -> file.isFile } .filter { file -> !pathsToExclude.contains(file.absolutePath) } + .sorted() .map { file -> calculateMD5HashForFileContent(file.toPath()) } .fold(byteArrayOf()) { acc, fileHash -> acc + fileHash } .getMD5Hash()