Skip to content

Commit a6a48b6

Browse files
authored
Update ThreadSafetyTests.swift
1 parent adef250 commit a6a48b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/CacheTests/ThreadSafetyTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ final class ThreadSafetyTests: XCTestCase {
2424
XCTAssertEqual(cache.get(i), i)
2525
}
2626

27-
XCTAssertEqual(cache.allValues.count, iterations)
27+
XCTAssertEqual(cache.allValues.count, 5)
2828
}
2929

3030
func testExpiringCacheConcurrentAccess() {
3131
let iterations = 200
32-
let cache = ExpiringCache<Int, Int>(duration: .seconds(1))
32+
let cache = ExpiringCache<Int, Int>(duration: .hours(1))
3333

3434
DispatchQueue.concurrentPerform(iterations: iterations) { i in
3535
cache.set(value: i, forKey: i)

0 commit comments

Comments
 (0)