Skip to content

Commit 3725a67

Browse files
committed
Fix test case of UIHostingControllerTests.swift
1 parent 5d99ba6 commit 3725a67

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

Tests/OpenSwiftUICompatibilityTests/Integration/UIKit/UIHostingControllerTests.swift

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ import UIKit
88

99
@MainActor
1010
struct UIHostingControllerTests {
11-
@Test("BodyAccessor crash for non empty View instance", .bug("#81", relationship: .verifiesFix))
12-
func testBasicAnyViewWithProperty() throws {
11+
@Test(
12+
"Attribute setter crash for basic AnyView",
13+
.bug("https://github.com/OpenSwiftUIProject/OpenGraph/issues/58", relationship: .verifiesFix)
14+
)
15+
func testBasicAnyView() throws {
1316
struct ContentView: View {
14-
var name = ""
1517
var body: some View {
1618
AnyView(EmptyView())
1719
}
@@ -20,9 +22,12 @@ struct UIHostingControllerTests {
2022
vc.triggerLayout()
2123
workaroundIssue87(vc)
2224
}
23-
24-
@Test("BodyAccessor crash for non empty View instance", .bug("#81", relationship: .verifiesFix))
25-
func basicAnyViewWithProperty() throws {
25+
26+
@Test(
27+
"BodyAccessor crash for non empty View instance",
28+
.bug("#81", relationship: .verifiesFix)
29+
)
30+
func testBasicAnyViewWithProperty() throws {
2631
struct ContentView: View {
2732
var name = ""
2833
var body: some View {

0 commit comments

Comments
 (0)