Skip to content

Commit 62a65b8

Browse files
committed
Hashing test: restore the seed override before finishing the test
Overriding the hash value breaks all Dictionary instances in the test harness, so do it only temporarily.
1 parent 27a6be9 commit 62a65b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

validation-test/stdlib/Hashing.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ HashingTestSuite.test("overridePerExecutionHashSeed/overflow") {
144144
// Test that we don't use checked arithmetic on the seed.
145145
_HashingDetail.fixedSeedOverride = UInt64.max
146146
expectEqual(0x4344_dc3a_239c_3e81, _mixUInt64(0xffff_ffff_ffff_ffff))
147+
_HashingDetail.fixedSeedOverride = 0
147148
}
148149

149150
runAllTests()

0 commit comments

Comments
 (0)