Skip to content

Commit

Permalink
Add missing available annotation to streaming tests (#33)
Browse files Browse the repository at this point in the history
### 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]>
  • Loading branch information
simonjbeaumont authored Nov 27, 2023
1 parent 0e75335 commit 5e704f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import OpenAPIRuntime
import XCTest
@testable import OpenAPIURLSession

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

Expand Down

0 comments on commit 5e704f1

Please sign in to comment.