Skip to content

Commit aa7a556

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

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
@@ -17,14 +17,14 @@ final class ThreadSafetyTests: XCTestCase {
1717

1818
func testLRUCacheConcurrentAccess() {
1919
let iterations = 500
20-
let cache = LRUCache<Int, Int>(capacity: 5)
20+
let cache = LRUCache<Int, Int>(capacity: 500)
2121

2222
DispatchQueue.concurrentPerform(iterations: iterations) { i in
2323
cache.set(value: i, forKey: i)
2424
XCTAssertEqual(cache.get(i), i)
2525
}
2626

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

3030
func testExpiringCacheConcurrentAccess() {

0 commit comments

Comments
 (0)