small refactor (#104)

This commit is contained in:
David Colburn
2021-08-30 18:22:11 -05:00
committed by GitHub
parent 0bfd05c3b8
commit 2fd61531d2
8 changed files with 74 additions and 89 deletions
+2 -1
View File
@@ -21,13 +21,14 @@ func testTurnServer(t *testing.T) {
require.NoError(t, err)
conf.TURN.Enabled = true
conf.Keys = map[string]string{testApiKey: testApiSecret}
currentNode, err := routing.NewLocalNode(conf)
require.NoError(t, err)
currentNode.Id = utils.NewGuid(nodeId1)
// local routing and store
s, err := service.InitializeServer(conf, &StaticKeyProvider{}, currentNode)
s, err := service.InitializeServer(conf, currentNode)
require.NoError(t, err)
go s.Start()
waitForServerToStart(s)