Skip to content

Commit 827fa65

Browse files
committed
Fix DebugServerTests issue
1 parent 51ca025 commit 827fa65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/OpenGraphCompatibilityTests/Debug/DebugServerTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import CoreFoundation
77
import Foundation
88
import Testing
99

10+
@MainActor
1011
struct DebugServerTests {
1112
@Test
1213
func testMode0() {
@@ -22,11 +23,12 @@ struct DebugServerTests {
2223
.disabled(if: compatibilityTestEnabled, "Skip on AG due to internal_diagnostics check"),
2324
)
2425
func testMode1() throws {
25-
_ = try #require(OGDebugServer.start(mode: 1))
26+
let _ = try #require(OGDebugServer.start(mode: 1))
2627
let url = try #require(OGDebugServer.copyURL())
2728
let urlString = (url as URL).absoluteString
2829
#expect(urlString.hasPrefix("graph://"))
2930
OGDebugServer.run(timeout: 1)
31+
OGDebugServer.stop()
3032
}
3133
}
3234
#endif

0 commit comments

Comments
 (0)