Skip to content

Commit

Permalink
Move around MainActor
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif committed Sep 20, 2024
1 parent e3aa6c4 commit c388b2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tests/AppStateTests/AppStateTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,13 @@ fileprivate struct ExampleView {
}
#endif

@MainActor
final class AppStateTests: XCTestCase {
@MainActor
override func setUp() async throws {
Application.logging(isEnabled: true)
}


@MainActor
override func tearDown() async throws {
let applicationDescription = Application.description
Application.logger.debug("AppStateTests \(applicationDescription)")
Expand All @@ -77,6 +78,7 @@ final class AppStateTests: XCTestCase {
username.value = "Leif"
}

@MainActor
func testState() {
var appState: Application.State = Application.state(\.username)
//
Expand Down

0 comments on commit c388b2a

Please sign in to comment.