File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Sources/JavaScriptEventLoop
Tests/JavaScriptEventLoopTests Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -412,8 +412,9 @@ public final class WebWorkerTaskExecutor: TaskExecutor {
412
412
let unmanagedContext = Unmanaged . passRetained ( context)
413
413
contexts. append ( unmanagedContext)
414
414
let ptr = unmanagedContext. toOpaque ( )
415
+ var thread = pthread_t ( bitPattern: 0 )
415
416
let ret = pthread_create (
416
- nil ,
417
+ & thread ,
417
418
nil ,
418
419
{ ptr in
419
420
// Cast to a optional pointer to absorb nullability variations between platforms.
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ final class JavaScriptEventLoopTests: XCTestCase {
157
157
let result = try await promise2. value
158
158
XCTAssertEqual ( result, . string( " 3.0 " ) )
159
159
}
160
- XCTAssertGreaterThanOrEqual ( thenDiff, 200 )
160
+ XCTAssertGreaterThanOrEqual ( thenDiff, 150 )
161
161
}
162
162
163
163
func testPromiseThenWithFailure( ) async throws {
You can’t perform that action at this time.
0 commit comments