MCPcopy
hub / github.com/livekit/livekit / TestSingleNodeDoubleSlash

Function TestSingleNodeDoubleSlash

test/singlenode_test.go:620–632  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

618}
619
620func TestSingleNodeDoubleSlash(t *testing.T) {
621 if testing.Short() {
622 t.SkipNow()
623 return
624 }
625 s, finish := setupSingleNodeTest("TestSingleNodeDoubleSlash")
626 defer finish()
627 // client contains trailing slash in URL, causing path to contain double //
628 // without our middleware, this would cause a 302 redirect
629 roomClient = livekit.NewRoomServiceJSONClient(fmt.Sprintf("http://localhost:%d/", s.HTTPPort()), &http.Client{})
630 _, err := roomClient.ListRooms(contextWithToken(listRoomToken()), &livekit.ListRoomsRequest{})
631 require.NoError(t, err)
632}
633
634func TestPingPong(t *testing.T) {
635 if testing.Short() {

Callers

nothing calls this directly

Calls 5

setupSingleNodeTestFunction · 0.85
contextWithTokenFunction · 0.85
listRoomTokenFunction · 0.85
HTTPPortMethod · 0.80
ListRoomsMethod · 0.65

Tested by

no test coverage detected