Skip to content

Commit

Permalink
Run sync ups tests with main serial executor (#3431)
Browse files Browse the repository at this point in the history
* wip

* wip
  • Loading branch information
mbrandonw authored Oct 9, 2024
1 parent f9f3e3a commit bc47c51
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Examples/SyncUps/SyncUpsTests/AppFeatureTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import Testing

@MainActor
struct AppFeatureTests {
init() { uncheckedUseMainSerialExecutor = true }

@Test
func detailEdit() async throws {
let syncUp = SyncUp.mock
Expand Down
2 changes: 2 additions & 0 deletions Examples/SyncUps/SyncUpsTests/RecordMeetingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import Testing

@MainActor
struct RecordMeetingTests {
init() { uncheckedUseMainSerialExecutor = true }

@Test
func timer() async {
let clock = TestClock()
Expand Down
2 changes: 2 additions & 0 deletions Examples/SyncUps/SyncUpsTests/SyncUpDetailTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import Testing

@MainActor
struct SyncUpDetailTests {
init() { uncheckedUseMainSerialExecutor = true }

@Test
func speechRestricted() async {
let store = TestStore(initialState: SyncUpDetail.State(syncUp: Shared(.mock))) {
Expand Down
2 changes: 2 additions & 0 deletions Examples/SyncUps/SyncUpsTests/SyncUpFormTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import Testing

@MainActor
struct SyncUpFormTests {
init() { uncheckedUseMainSerialExecutor = true }

@Test
func addAttendee() async {
let store = TestStore(
Expand Down
2 changes: 2 additions & 0 deletions Examples/SyncUps/SyncUpsTests/SyncUpsListTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import Testing

@MainActor
struct SyncUpsListTests {
init() { uncheckedUseMainSerialExecutor = true }

@Test
func add() async throws {
let store = TestStore(initialState: SyncUpsList.State()) {
Expand Down

0 comments on commit bc47c51

Please sign in to comment.