mirror of
https://github.com/livekit/livekit.git
synced 2026-03-30 13:25:42 +00:00
19 lines
313 B
Go
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)
|
|
}
|