aboutsummaryrefslogtreecommitdiff
path: root/clientapi/admin_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/admin_test.go')
-rw-r--r--clientapi/admin_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/clientapi/admin_test.go b/clientapi/admin_test.go
index cf1c4ef3..69a81532 100644
--- a/clientapi/admin_test.go
+++ b/clientapi/admin_test.go
@@ -142,8 +142,8 @@ func TestPurgeRoom(t *testing.T) {
// this starts the JetStream consumers
syncapi.AddPublicRoutes(processCtx, routers, cfg, cm, &natsInstance, userAPI, rsAPI, caches, caching.DisableMetrics)
- federationapi.NewInternalAPI(processCtx, cfg, cm, &natsInstance, nil, rsAPI, caches, nil, true)
- rsAPI.SetFederationAPI(nil, nil)
+ fsAPI := federationapi.NewInternalAPI(processCtx, cfg, cm, &natsInstance, nil, rsAPI, caches, nil, true)
+ rsAPI.SetFederationAPI(fsAPI, nil)
// Create the room
if err := api.SendEvents(ctx, rsAPI, api.KindNew, room.Events(), "test", "test", "test", nil, false); err != nil {