Skip to content

Commit

Permalink
Attempt to fix Ubuntu CI
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif committed Nov 1, 2024
1 parent 366c237 commit 49a4919
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/AppStateTests/AppDependencyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit 49a4919

Please sign in to comment.