From 49a49198df22cf237de60ce07b2f792710942bb7 Mon Sep 17 00:00:00 2001 From: Leif Date: Fri, 1 Nov 2024 17:25:10 -0600 Subject: [PATCH] Attempt to fix Ubuntu CI --- Tests/AppStateTests/AppDependencyTests.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/AppStateTests/AppDependencyTests.swift b/Tests/AppStateTests/AppDependencyTests.swift index 5a4c98b..4bfee8b 100644 --- a/Tests/AppStateTests/AppDependencyTests.swift +++ b/Tests/AppStateTests/AppDependencyTests.swift @@ -42,24 +42,28 @@ fileprivate struct ExampleDependencyWrapper { @MainActor final class AppDependencyTests: XCTestCase { + @MainActor override func setUp() async throws { Application .logging(isEnabled: true) .promote(\.networking, with: MockNetworking()) } + @MainActor override func tearDown() async throws { let applicationDescription = Application.description Application.logger.debug("AppDependencyTests \(applicationDescription)") } + @MainActor func testComposableDependencies() { let composableService = Application.dependency(\.composableService) composableService.networking.fetch() } + @MainActor func testDependency() async { Application.promote(\.networking, with: NetworkService())