Skip to content

Commit 64eeb0d

Browse files
Fix test case compilation for then returning String
1 parent e174c60 commit 64eeb0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/JavaScriptEventLoopTests/JavaScriptEventLoopTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ final class JavaScriptEventLoopTests: XCTestCase {
151151
}
152152
let promise2 = promise.then { result in
153153
try await Task.sleep(nanoseconds: 100_000_000)
154-
return String(result.number!)
154+
return .string(String(result.number!))
155155
}
156156
let thenDiff = try await measureTime {
157157
let result = try await promise2.value

0 commit comments

Comments
 (0)