mirror of
https://github.com/HaishinKit/HaishinKit.swift.git
synced 2026-05-07 20:12:28 +00:00
16 lines
436 B
Swift
16 lines
436 B
Swift
import Foundation
|
|
import HaishinKit
|
|
@testable import SRTHaishinKit
|
|
import Testing
|
|
|
|
@Suite actor SRTStreamTests {
|
|
@Test func unsupportedAudioCodec() async {
|
|
await #expect(throws: SRTStream.Error.unsupportedCodec.self) {
|
|
let stream = SRTStream(connection: .init())
|
|
var audio = AudioCodecSettings()
|
|
audio.format = .opus
|
|
try await stream.setAudioSettings(audio)
|
|
}
|
|
}
|
|
}
|