Skip to content

Commit bc47c51

Browse files
authored
Run sync ups tests with main serial executor (#3431)
* wip * wip
1 parent f9f3e3a commit bc47c51

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

Examples/SyncUps/SyncUpsTests/AppFeatureTests.swift

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import Testing
66

77
@MainActor
88
struct AppFeatureTests {
9+
init() { uncheckedUseMainSerialExecutor = true }
10+
911
@Test
1012
func detailEdit() async throws {
1113
let syncUp = SyncUp.mock

Examples/SyncUps/SyncUpsTests/RecordMeetingTests.swift

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import Testing
66

77
@MainActor
88
struct RecordMeetingTests {
9+
init() { uncheckedUseMainSerialExecutor = true }
10+
911
@Test
1012
func timer() async {
1113
let clock = TestClock()

Examples/SyncUps/SyncUpsTests/SyncUpDetailTests.swift

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import Testing
55

66
@MainActor
77
struct SyncUpDetailTests {
8+
init() { uncheckedUseMainSerialExecutor = true }
9+
810
@Test
911
func speechRestricted() async {
1012
let store = TestStore(initialState: SyncUpDetail.State(syncUp: Shared(.mock))) {

Examples/SyncUps/SyncUpsTests/SyncUpFormTests.swift

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import Testing
66

77
@MainActor
88
struct SyncUpFormTests {
9+
init() { uncheckedUseMainSerialExecutor = true }
10+
911
@Test
1012
func addAttendee() async {
1113
let store = TestStore(

Examples/SyncUps/SyncUpsTests/SyncUpsListTests.swift

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import Testing
66

77
@MainActor
88
struct SyncUpsListTests {
9+
init() { uncheckedUseMainSerialExecutor = true }
10+
911
@Test
1012
func add() async throws {
1113
let store = TestStore(initialState: SyncUpsList.State()) {

0 commit comments

Comments
 (0)