Files
upstream-livekit/pkg/utils/iceconfigcache_test.go
upstream-mirror 78704103fc
Some checks failed
Release to Docker / docker (push) Failing after 2s
Release Test Server to Docker / docker (push) Failing after 3s
Test / test (push) Failing after 16s
snapshot of https://github.com/livekit/livekit.git @ 08c5433449c106943231037d0b892895f6e92d3b (2026-09-15)
2026-09-15 16:14:22 +05:00

19 lines
313 B
Go

package utils
import (
"testing"
"time"
"github.com/stretchr/testify/require"
"github.com/livekit/protocol/livekit"
)
func TestIceConfigCache(t *testing.T) {
cache := NewIceConfigCache[string](10 * time.Second)
t.Cleanup(cache.Stop)
cache.Put("test", &livekit.ICEConfig{})
require.NotNil(t, cache)
}