Make strict mode a param (#1054)

So, a wrapping config (like cloud) can skip the strict mode check.
This commit is contained in:
Raja Subramanian
2022-09-29 13:07:32 +05:30
committed by GitHub
parent c93df27329
commit 33f5dbc501
7 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -17,7 +17,7 @@ import (
func TestCreateRoom(t *testing.T) {
t.Run("ensure default room settings are applied", func(t *testing.T) {
conf, err := config.NewConfig("", nil)
conf, err := config.NewConfig("", true, nil)
require.NoError(t, err)
node, err := routing.NewLocalNode(conf)
@@ -32,7 +32,7 @@ func TestCreateRoom(t *testing.T) {
})
t.Run("reject new participants when track limit has been reached", func(t *testing.T) {
conf, err := config.NewConfig("", nil)
conf, err := config.NewConfig("", true, nil)
require.NoError(t, err)
conf.Limit.NumTracks = 10
@@ -48,7 +48,7 @@ func TestCreateRoom(t *testing.T) {
})
t.Run("reject new participants when bandwidth limit has been reached", func(t *testing.T) {
conf, err := config.NewConfig("", nil)
conf, err := config.NewConfig("", true, nil)
require.NoError(t, err)
conf.Limit.BytesPerSec = 100