aboutsummaryrefslogtreecommitdiff
path: root/federationapi/federationapi.go
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2023-01-20 12:45:56 +0100
committerGitHub <noreply@github.com>2023-01-20 12:45:56 +0100
commitce2bfc3f2e507a012044906af7f25c9dc52873d7 (patch)
treedbfc33abaa3e03cff17886d085b45869ad81df44 /federationapi/federationapi.go
parent738686ae686004c5efa9fe2096502cdc426c6dd8 (diff)
Make tests more reliable (#2948)
When using `testrig.CreateBase` and then using that base for other `NewInternalAPI` calls, we never actually shutdown the components. `testrig.CreateBase` returns a `close` function, which only removes the database, so still running components have issues connecting to the database, since we ripped it out underneath it - which can result in "Disk I/O" or "pq deadlock detected" issues.
Diffstat (limited to 'federationapi/federationapi.go')
-rw-r--r--federationapi/federationapi.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/federationapi/federationapi.go b/federationapi/federationapi.go
index 87eb751f..ce0ce98e 100644
--- a/federationapi/federationapi.go
+++ b/federationapi/federationapi.go
@@ -85,10 +85,7 @@ func AddPublicRoutes(
}
routing.Setup(
- base.PublicFederationAPIMux,
- base.PublicKeyAPIMux,
- base.PublicWellKnownAPIMux,
- cfg,
+ base,
rsAPI, f, keyRing,
federation, userAPI, keyAPI, mscCfg,
servers, producer,