Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix]Failing tests due to AudioProcessingModule lifecycle #371

Merged
merged 2 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import XCTest
@MainActor
final class StreamPictureInPictureTrackStateAdapterTests: XCTestCase {

private var factory: PeerConnectionFactory! = .init(audioProcessingModule: StreamAudioFilterProcessingModule())
private var factory: PeerConnectionFactory! = .init(audioProcessingModule: MockAudioProcessingModule())
private var adapter: StreamPictureInPictureTrackStateAdapter! = .init()

// MARK: - Lifecycle
Expand Down
2 changes: 1 addition & 1 deletion StreamVideoTests/WebRTC/WebRTCClient_Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ final class WebRTCClient_Tests: StreamVideoTestCase {
}

private func makeVideoTrack() async -> RTCVideoTrack {
let factory = PeerConnectionFactory(audioProcessingModule: StreamAudioFilterProcessingModule())
let factory = PeerConnectionFactory(audioProcessingModule: MockAudioProcessingModule())
let videoSource = await factory.makeVideoSource(forScreenShare: false)
let track = await factory.makeVideoTrack(source: videoSource)
return track
Expand Down
Loading