Files
HaishinKit.swift/SRTHaishinKit/Tests/SRT/SRTStreamTests.swift
2025-07-20 22:04:25 +09:00

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)
}
}
}