From 0d5f0a85d82063d2689919f82423b264a0781335 Mon Sep 17 00:00:00 2001 From: Matthew Nelson Date: Thu, 30 Nov 2023 13:39:08 -0500 Subject: [PATCH] Fix flaky test --- .../src/commonMain/kotlin/org/kotlincrypto/macs/MacUnitTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/src/commonMain/kotlin/org/kotlincrypto/macs/MacUnitTest.kt b/tools/testing/src/commonMain/kotlin/org/kotlincrypto/macs/MacUnitTest.kt index 73ae402..38e9003 100644 --- a/tools/testing/src/commonMain/kotlin/org/kotlincrypto/macs/MacUnitTest.kt +++ b/tools/testing/src/commonMain/kotlin/org/kotlincrypto/macs/MacUnitTest.kt @@ -85,7 +85,7 @@ abstract class MacUnitTest { val copy = mac.copy() copy.reset() - assertNotEquals(copy, mac) + assertNotEquals(copy.hashCode(), mac.hashCode()) assertEquals(expectedResetSmallHash, copy.doFinal().encodeToString(TestData.base16)) assertEquals(expectedUpdateSmallHash, mac.doFinal().encodeToString(TestData.base16)) }