Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
Mordil committed Feb 8, 2025
1 parent 3d702c5 commit 6c9cb07
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Tests/CurrencyTests/CurrencyMintTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import Currency
import XCTest

@MainActor
final class CurrencyMintTests: XCTestCase { }

// MARK: Fallback Lookup
Expand All @@ -31,7 +30,7 @@ extension CurrencyMintTests {
XCTAssertNil(darseks)
}

func test_withFallbackLookup_whenLookupFails_callsFallbackLookup() {
func test_withFallbackLookup_whenLookupFails_callsFallbackLookup() async {
struct KED: CurrencyValue, CurrencyDescriptor {
static var name: String { return "Klingon Darseks" }
static var alphabeticCode: String { return "KED" }
Expand All @@ -58,7 +57,7 @@ extension CurrencyMintTests {
let d2 = mint.make(identifier: 666, minorUnits: .zero)
XCTAssertTrue(d2 is KED)

self.waitForExpectations(timeout: 1)
await self.fulfillment(of: [expectation], timeout: 1)
}

func test_withDefaultCurrencyLookup_whenLookupFails_returnsDefaultCurrency() {
Expand Down

0 comments on commit 6c9cb07

Please sign in to comment.