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 a6a48b6 commit aa7a556Copy full SHA for aa7a556
Tests/CacheTests/ThreadSafetyTests.swift
@@ -17,14 +17,14 @@ final class ThreadSafetyTests: XCTestCase {
17
18
func testLRUCacheConcurrentAccess() {
19
let iterations = 500
20
- let cache = LRUCache<Int, Int>(capacity: 5)
+ let cache = LRUCache<Int, Int>(capacity: 500)
21
22
DispatchQueue.concurrentPerform(iterations: iterations) { i in
23
cache.set(value: i, forKey: i)
24
XCTAssertEqual(cache.get(i), i)
25
}
26
27
- XCTAssertEqual(cache.allValues.count, 5)
+ XCTAssertEqual(cache.allValues.count, 500)
28
29
30
func testExpiringCacheConcurrentAccess() {
0 commit comments