From 3754659de0c04d9eeb9f69d317d1ef4a3a5dbfce Mon Sep 17 00:00:00 2001 From: Dan Peleg Date: Tue, 31 Oct 2023 00:50:59 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=B0=EF=B8=8F=20Remove=203PID=20test=20cod?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clientapi/clientapi_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/clientapi/clientapi_test.go b/clientapi/clientapi_test.go index dfc7ebb2b..434ae514a 100644 --- a/clientapi/clientapi_test.go +++ b/clientapi/clientapi_test.go @@ -1075,14 +1075,14 @@ func TestTurnserver(t *testing.T) { // routers := httputil.NewRouters() // cm := sqlutil.NewConnectionManager(processCtx, cfg.Global.DatabaseOptions) - // Needed to create accounts - rsAPI := roomserver.NewInternalAPI(processCtx, cfg, cm, &natsInstance, nil, caching.DisableMetrics) - rsAPI.SetFederationAPI(nil, nil) - userAPI := userapi.NewInternalAPI(processCtx, cfg, cm, &natsInstance, rsAPI, nil) - // We mostly need the rsAPI/userAPI for this test, so nil for other APIs etc. - AddPublicRoutes(processCtx, routers, cfg, &natsInstance, nil, rsAPI, nil, nil, nil, userAPI, nil, nil, caching.DisableMetrics) +// // Needed to create accounts +// rsAPI := roomserver.NewInternalAPI(processCtx, cfg, cm, &natsInstance, nil, caching.DisableMetrics) +// rsAPI.SetFederationAPI(nil, nil) +// userAPI := userapi.NewInternalAPI(processCtx, cfg, cm, &natsInstance, rsAPI, nil) +// // We mostly need the rsAPI/userAPI for this test, so nil for other APIs etc. +// AddPublicRoutes(processCtx, routers, cfg, &natsInstance, nil, rsAPI, nil, nil, nil, userAPI, nil, nil, caching.DisableMetrics) -// // Create the users in the userapi and login +// // Create the users in the userapi and login // accessTokens := map[*test.User]userDevice{ // alice: {}, // }