Skip to content

Commit 5e704f1

Browse files
Add missing available annotation to streaming tests (#33)
### Motivation The tests had a missing `@available` annotation which meant that they didn't build iOS (annoyingly, when building for macOS, these things are not checked so things were building fine locally). ### Modifications Add missing available annotation to streaming tests. ### Result Builds for iOS again. ### Test Plan Local testing, selecting generic iOS destination in Xcode. This failed before this patch, and succeeds with it. Signed-off-by: Si Beaumont <[email protected]>
1 parent 0e75335 commit 5e704f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/OpenAPIURLSessionTests/URLSessionBidirectionalStreamingTests/URLSessionBidirectionalStreamingTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import OpenAPIRuntime
2121
import XCTest
2222
@testable import OpenAPIURLSession
2323

24-
class URLSessionBidirectionalStreamingTests: XCTestCase {
24+
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) class URLSessionBidirectionalStreamingTests: XCTestCase {
2525
// swift-format-ignore: AllPublicDeclarationsHaveDocumentation
2626
static override func setUp() { OpenAPIURLSession.debugLoggingEnabled = false }
2727

0 commit comments

Comments
 (0)