Skip to content

Commit

Permalink
Add concurrency to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pereBohigas committed May 13, 2024
1 parent 7f0e947 commit d6edcdc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Tests/SwiftPolyglotCoreTests/SwiftPolyglotCoreTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import XCTest

final class SwiftPolyglotCoreTests: XCTestCase {
func testStringCatalogFullyTranslated() throws {
func testStringCatalogFullyTranslated() async throws {
guard
let stringCatalogFilePath = Bundle.module.path(
forResource: "FullyTranslated",
Expand All @@ -21,10 +21,10 @@ final class SwiftPolyglotCoreTests: XCTestCase {
isRunningInAGitHubAction: false
)

XCTAssertNoThrow(try swiftPolyglotCore.run())
await XCTAssertNoThrowAsync(try await swiftPolyglotCore.run())
}

func testStringCatalogVariationsFullyTranslated() throws {
func testStringCatalogVariationsFullyTranslated() async throws {
guard
let stringCatalogFilePath = Bundle.module.path(
forResource: "VariationsFullyTranslated",
Expand All @@ -43,10 +43,10 @@ final class SwiftPolyglotCoreTests: XCTestCase {
isRunningInAGitHubAction: false
)

XCTAssertNoThrow(try swiftPolyglotCore.run())
await XCTAssertNoThrowAsync(try await swiftPolyglotCore.run())
}

func testStringCatalogWithMissingTranslations() throws {
func testStringCatalogWithMissingTranslations() async throws {
guard
let stringCatalogFilePath = Bundle.module.path(
forResource: "WithMissingTranslations",
Expand All @@ -65,10 +65,10 @@ final class SwiftPolyglotCoreTests: XCTestCase {
isRunningInAGitHubAction: false
)

XCTAssertThrowsError(try swiftPolyglotCore.run())
await XCTAssertThrowsErrorAsync(try await swiftPolyglotCore.run())
}

func testStringCatalogWithMissingVariations() throws {
func testStringCatalogWithMissingVariations() async throws {
guard
let stringCatalogFilePath = Bundle.module.path(
forResource: "VariationsWithMissingTranslations",
Expand All @@ -87,6 +87,6 @@ final class SwiftPolyglotCoreTests: XCTestCase {
isRunningInAGitHubAction: false
)

XCTAssertThrowsError(try swiftPolyglotCore.run())
await XCTAssertThrowsErrorAsync(try await swiftPolyglotCore.run())
}
}

0 comments on commit d6edcdc

Please sign in to comment.