Files
livekit/pkg/config/config_test.go
David Zhao a80e8cf69f Enable passing in local IP, refactored IP detection (#48)
* Enable passing in local IP, refactored IP detection

* update docker server instructions
2021-07-11 08:42:11 -07:00

16 lines
291 B
Go

package config
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestConfig_UnmarshalKeys(t *testing.T) {
conf, err := NewConfig("", nil)
require.NoError(t, err)
require.NoError(t, conf.unmarshalKeys("key1: secret1"))
require.Equal(t, "secret1", conf.Keys["key1"])
}