Skip to content

armgit / Piik

Public Imported from GitHub
0

Free, open-source screen sharing for private live streams with friends. Watch together in a browser or self-host Piik. 免费开源的私密屏幕共享,支持游戏直播、一起看电影与自部署。

fix(media): restore pacing in the publication recovery fixture (#514)

AAAeef70ffda0ff
diff --git a/internal/media/forwarding/publication_test.go b/internal/media/forwarding/publication_test.go
index ef0ae072..a25490a1 100644
--- a/internal/media/forwarding/publication_test.go
+++ b/internal/media/forwarding/publication_test.go
@@ -527,6 +527,7 @@ func TestPublicationSimulcastReuseAudioDemandAndClose(t *testing.T) {
// Restore this allocation fixture's capacity explicitly. A congestion event
// cannot prove an increase; this test covers RID reuse, not bandwidth probing.
publication.bandwidth.target.Store(1_000_000)
+ publication.pacer.SetBitrate(1_000_000)
publication.allocator.SetChannelCapacity(1_000_000)
// Drain packets already admitted by the pacer before observing inactive output.
for range 6 {