(t *testing.T)
| 618 | } |
| 619 | |
| 620 | func 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 | |
| 634 | func TestPingPong(t *testing.T) { |
| 635 | if testing.Short() { |
nothing calls this directly
no test coverage detected