From cc30d2e0255dc6447b6b7599fd8f996874a0e06e Mon Sep 17 00:00:00 2001 From: David Zhao Date: Wed, 30 Jun 2021 10:57:54 -0700 Subject: [PATCH] log error when creating new node (test) --- test/integration_helpers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration_helpers.go b/test/integration_helpers.go index 3c05b95f2..9ff4d8ff1 100644 --- a/test/integration_helpers.go +++ b/test/integration_helpers.go @@ -138,15 +138,15 @@ func createSingleNodeServer() *service.LivekitServer { conf.Development = true currentNode, err := routing.NewLocalNode(conf) - currentNode.Id = utils.NewGuid(nodeId1) if err != nil { - panic(err) + panic(fmt.Sprintf("could not create local node: %v", err)) } + currentNode.Id = utils.NewGuid(nodeId1) // local routing and store router := routing.NewLocalRouter(currentNode) roomStore := service.NewLocalRoomStore() - roomStore.DeleteRoom(testRoom) + _ = roomStore.DeleteRoom(testRoom) s, err := service.InitializeServer(conf, &StaticKeyProvider{}, roomStore, router, currentNode, &routing.RandomSelector{}) if err != nil { panic(fmt.Sprintf("could not create server: %v", err))