Avatar
Avatar
tarunon
test自体にasync付けると手っ取り早いかも? func testFoo() async { XCTAssertEqual(await foo(), 1) }
それだとawait foo()のところでエラーになるんですよね(あれ?何か勘違いしてます?) 'async' call in an autoclosure that does not support concurrency