Skip to content

Commit 5ed13e2

Browse files
committed
Qlog tests
1 parent cd89d9f commit 5ed13e2

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Tests/QUICTests/QLogTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ import XCTest
2323
#endif
2424

2525
#if QlogOutput
26+
27+
@available(Network 0.1.0, *)
2628
let qlogTestsLogPrefixer = LogPrefixer("[QLogTests]")
2729

30+
@available(Network 0.1.0, *)
2831
final class QLogTests: XCTestCase {
2932
var qlog: QLog = QLog()
3033

Tests/SwiftNetworkTests/SwiftNetworkQUICQlogTests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ internal import os
4848

4949
#if QlogOutput
5050

51+
@available(Network 0.1.0, *)
5152
final class SwiftNetworkQUICQlogTests: NetTestCase {
5253
func testQUICWriteClientQlogFileOnDataTransfer() throws {
5354
let dataBlock: [UInt8] = Array("Hello World!".utf8)
@@ -68,7 +69,7 @@ final class SwiftNetworkQUICQlogTests: NetTestCase {
6869
let qlogExpectation = XCTestExpectation(description: "Loop until the qlog is written")
6970
// Validate the qlog file is present (based on how it creates the file)
7071
let finalPath = path + "/qlog_client_\(title)_C1.qlog"
71-
func checkQlogFileExists() {
72+
@Sendable func checkQlogFileExists() {
7273
if FileManager.default.fileExists(atPath: finalPath) {
7374
qlogExpectation.fulfill()
7475
}
@@ -110,7 +111,7 @@ final class SwiftNetworkQUICQlogTests: NetTestCase {
110111
let qlogExpectation = XCTestExpectation(description: "Loop until the qlog is written")
111112
// Validate the qlog file is present (based on how it creates the file)
112113
let finalPath = path + "qlog_server_\(title)_C1.qlog"
113-
func checkQlogFileExists() {
114+
@Sendable func checkQlogFileExists() {
114115
if FileManager.default.fileExists(atPath: finalPath) {
115116
qlogExpectation.fulfill()
116117
}

0 commit comments

Comments
 (0)