We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c28b30 commit 9089452Copy full SHA for 9089452
Tests/AllocatedLockTests.swift
@@ -38,7 +38,7 @@ final class AllocatedLockTests: XCTestCase {
38
let state = AllocatedLock<Int>(initialState: 0)
39
40
let total = await withTaskGroup(of: Void.self) { group in
41
- for i in 1...10000 {
+ for i in 1...1000 {
42
group.addTask {
43
state.withLock { $0 += i }
44
}
@@ -47,7 +47,7 @@ final class AllocatedLockTests: XCTestCase {
47
return state.withLock { $0 }
48
49
50
- XCTAssertEqual(total, 50005000)
+ XCTAssertEqual(total, 500500)
51
52
53
func testLock_ReturnsValue() async {
0 commit comments