We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adef250 commit a6a48b6Copy full SHA for a6a48b6
Tests/CacheTests/ThreadSafetyTests.swift
@@ -24,12 +24,12 @@ final class ThreadSafetyTests: XCTestCase {
24
XCTAssertEqual(cache.get(i), i)
25
}
26
27
- XCTAssertEqual(cache.allValues.count, iterations)
+ XCTAssertEqual(cache.allValues.count, 5)
28
29
30
func testExpiringCacheConcurrentAccess() {
31
let iterations = 200
32
- let cache = ExpiringCache<Int, Int>(duration: .seconds(1))
+ let cache = ExpiringCache<Int, Int>(duration: .hours(1))
33
34
DispatchQueue.concurrentPerform(iterations: iterations) { i in
35
cache.set(value: i, forKey: i)
0 commit comments