Skip to content

Commit d016cb6

Browse files
committed
Fix test case issue
1 parent 8c8bf72 commit d016cb6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/OpenSwiftUICoreTests/Util/ThreadUtilsTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ struct ThreadUtilsTests {
3030
}
3131
let result = try await group.reduce(0, +)
3232
#expect(result == 7)
33-
#expect(box.value == ThreadUtilsTests.defaultValue)
33+
await MainActor.run {
34+
#expect(box.value == ThreadUtilsTests.defaultValue)
35+
}
3436
}
3537
}
3638
}

0 commit comments

Comments
 (0)