snapshot of https://github.com/livekit/livekit.git @ 08c5433449c106943231037d0b892895f6e92d3b (2026-09-15)
This commit is contained in:
18
pkg/utils/iceconfigcache_test.go
Normal file
18
pkg/utils/iceconfigcache_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user