Skip to content

Commit 9089452

Browse files
committed
Ten thousand iterations is too much for Windows
1 parent 9c28b30 commit 9089452

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/AllocatedLockTests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ final class AllocatedLockTests: XCTestCase {
3838
let state = AllocatedLock<Int>(initialState: 0)
3939

4040
let total = await withTaskGroup(of: Void.self) { group in
41-
for i in 1...10000 {
41+
for i in 1...1000 {
4242
group.addTask {
4343
state.withLock { $0 += i }
4444
}
@@ -47,7 +47,7 @@ final class AllocatedLockTests: XCTestCase {
4747
return state.withLock { $0 }
4848
}
4949

50-
XCTAssertEqual(total, 50005000)
50+
XCTAssertEqual(total, 500500)
5151
}
5252

5353
func testLock_ReturnsValue() async {

0 commit comments

Comments
 (0)