mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
fix test
This commit is contained in:
parent
c09d548f53
commit
d55a9f6db3
|
|
@ -356,9 +356,7 @@ func TestRoomserverConsumerOneInvite(t *testing.T) {
|
||||||
}))
|
}))
|
||||||
defer srv.Close()
|
defer srv.Close()
|
||||||
|
|
||||||
// Create a dummy application service
|
as := &config.ApplicationService{
|
||||||
cfg.AppServiceAPI.Derived.ApplicationServices = []config.ApplicationService{
|
|
||||||
{
|
|
||||||
ID: "someID",
|
ID: "someID",
|
||||||
URL: srv.URL,
|
URL: srv.URL,
|
||||||
ASToken: "",
|
ASToken: "",
|
||||||
|
|
@ -368,8 +366,11 @@ func TestRoomserverConsumerOneInvite(t *testing.T) {
|
||||||
"users": {{RegexpObject: regexp.MustCompile(bob.ID)}},
|
"users": {{RegexpObject: regexp.MustCompile(bob.ID)}},
|
||||||
"aliases": {{RegexpObject: regexp.MustCompile(room.ID)}},
|
"aliases": {{RegexpObject: regexp.MustCompile(room.ID)}},
|
||||||
},
|
},
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
as.CreateHTTPClient(cfg.AppServiceAPI.DisableTLSValidation)
|
||||||
|
|
||||||
|
// Create a dummy application service
|
||||||
|
cfg.AppServiceAPI.Derived.ApplicationServices = []config.ApplicationService{*as}
|
||||||
|
|
||||||
caches := caching.NewRistrettoCache(128*1024*1024, time.Hour, caching.DisableMetrics)
|
caches := caching.NewRistrettoCache(128*1024*1024, time.Hour, caching.DisableMetrics)
|
||||||
// Create required internal APIs
|
// Create required internal APIs
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue