(t *testing.T)
| 118 | } |
| 119 | |
| 120 | func TestServerPoolStats(t *testing.T) { |
| 121 | srv, cleanup := setupTestServer(t) |
| 122 | defer cleanup() |
| 123 | |
| 124 | req := httptest.NewRequest(http.MethodGet, "/v1/pool/stats", nil) |
| 125 | w := httptest.NewRecorder() |
| 126 | |
| 127 | srv.Router().ServeHTTP(w, req) |
| 128 | |
| 129 | assert.Equal(t, http.StatusOK, w.Code) |
| 130 | assert.Contains(t, w.Body.String(), "total_agents") |
| 131 | } |
| 132 | |
| 133 | func TestServerRoomsList(t *testing.T) { |
| 134 | srv, cleanup := setupTestServer(t) |
nothing calls this directly
no test coverage detected