Skip to content

Commit 0d5f0a8

Browse files
committed
Fix flaky test
1 parent 110e4fc commit 0d5f0a8

File tree

1 file changed

+1
-1
lines changed
  • tools/testing/src/commonMain/kotlin/org/kotlincrypto/macs

1 file changed

+1
-1
lines changed

tools/testing/src/commonMain/kotlin/org/kotlincrypto/macs/MacUnitTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ abstract class MacUnitTest {
8585
val copy = mac.copy()
8686
copy.reset()
8787

88-
assertNotEquals(copy, mac)
88+
assertNotEquals(copy.hashCode(), mac.hashCode())
8989
assertEquals(expectedResetSmallHash, copy.doFinal().encodeToString(TestData.base16))
9090
assertEquals(expectedUpdateSmallHash, mac.doFinal().encodeToString(TestData.base16))
9191
}

0 commit comments

Comments
 (0)