snowflake/common/media/channel_test.go
KokaKiwi 01bde142d4
refactor: move media channel handling to common/ and setup duplex channel
a duplex media channel should be more realistic, you generally both send and receive media when doing video call and
stuff
2025-08-16 18:52:31 +02:00

20 lines
336 B
Go

package media
import (
"testing"
)
func TestMediaChannelStop(t *testing.T) {
mc := NewMediaChannel()
// This should not panic
mc.Stop()
// Verify that the stop channel is closed
select {
case <-mc.stopCh:
// Channel is closed, which is expected
default:
t.Fatal("MediaChannel stopCh should be closed after Stop()")
}
}