mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-20 21:33:19 -06:00
Fix Federation API test
This commit is contained in:
parent
c4e5c69870
commit
9fa7654beb
|
|
@ -27,11 +27,11 @@ func TestRoomsV3URLEscapeDoNot404(t *testing.T) {
|
||||||
cfg.Database.Naffka = "file::memory:"
|
cfg.Database.Naffka = "file::memory:"
|
||||||
cfg.SetDefaults()
|
cfg.SetDefaults()
|
||||||
base := setup.NewBaseDendrite(cfg, "Test", false)
|
base := setup.NewBaseDendrite(cfg, "Test", false)
|
||||||
keyRing := &test.NopJSONVerifier{}
|
|
||||||
fsAPI := base.FederationSenderHTTPClient()
|
fsAPI := base.FederationSenderHTTPClient()
|
||||||
|
skAPI := base.ServerKeyAPIClient()
|
||||||
// TODO: This is pretty fragile, as if anything calls anything on these nils this test will break.
|
// TODO: This is pretty fragile, as if anything calls anything on these nils this test will break.
|
||||||
// Unfortunately, it makes little sense to instantiate these dependencies when we just want to test routing.
|
// Unfortunately, it makes little sense to instantiate these dependencies when we just want to test routing.
|
||||||
federationapi.AddPublicRoutes(base.PublicAPIMux, cfg, nil, nil, nil, keyRing, nil, nil, fsAPI, nil)
|
federationapi.AddPublicRoutes(base.PublicAPIMux, cfg, nil, nil, nil, skAPI, nil, nil, fsAPI, nil)
|
||||||
httputil.SetupHTTPAPI(
|
httputil.SetupHTTPAPI(
|
||||||
base.BaseMux,
|
base.BaseMux,
|
||||||
base.PublicAPIMux,
|
base.PublicAPIMux,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue