mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-10 23:53:09 -06:00
Cleanup unit tests
This commit is contained in:
parent
b647f1f3a1
commit
b987917a19
|
|
@ -9,7 +9,6 @@ import (
|
|||
|
||||
"github.com/matrix-org/dendrite/internal/caching"
|
||||
"github.com/matrix-org/dendrite/internal/sqlutil"
|
||||
"github.com/matrix-org/dendrite/roomserver/storage"
|
||||
"github.com/matrix-org/dendrite/setup/jetstream"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||
|
|
@ -34,10 +33,6 @@ func TestJoinRoomByIDOrAlias(t *testing.T) {
|
|||
|
||||
cm := sqlutil.NewConnectionManager(processCtx, cfg.Global.DatabaseOptions)
|
||||
caches := caching.NewRistrettoCache(128*1024*1024, time.Hour, caching.DisableMetrics)
|
||||
_, openErr := storage.Open(processCtx.Context(), cm, &cfg.RoomServer.Database, caches)
|
||||
if openErr != nil {
|
||||
t.Fatal(openErr)
|
||||
}
|
||||
natsInstance := jetstream.NATSInstance{}
|
||||
rsAPI := roomserver.NewInternalAPI(processCtx, cfg, cm, &natsInstance, caches, caching.DisableMetrics)
|
||||
userAPI := userapi.NewInternalAPI(processCtx, cfg, cm, &natsInstance, rsAPI, nil)
|
||||
|
|
|
|||
|
|
@ -69,7 +69,6 @@ func main() {
|
|||
}
|
||||
|
||||
natsInstance := &jetstream.NATSInstance{}
|
||||
_, _ = natsInstance.Prepare(processCtx, &cfg.Global.JetStream)
|
||||
rsAPI := roomserver.NewInternalAPI(processCtx, cfg, cm,
|
||||
natsInstance, caching.NewRistrettoCache(128*1024*1024, time.Hour, true), false)
|
||||
|
||||
|
|
|
|||
|
|
@ -517,7 +517,6 @@ func TestRedaction(t *testing.T) {
|
|||
}
|
||||
|
||||
natsInstance := &jetstream.NATSInstance{}
|
||||
_, _ = natsInstance.Prepare(processCtx, &cfg.Global.JetStream)
|
||||
rsAPI := roomserver.NewInternalAPI(processCtx, cfg, cm, natsInstance, caches, caching.DisableMetrics)
|
||||
|
||||
for _, tc := range testCases {
|
||||
|
|
|
|||
Loading…
Reference in a new issue