Swift Testing 비동기 테스트: async/await, 콜백, MainActor까지 실행 예제로 정리반환값이 있는 async 함수는 테스트 자체를 async로 만들고 await 뒤에 #expect를 붙이면 됩니다.2026.09.12