Cleanup unit tests

This commit is contained in:
Devon Hudson 2023-06-13 09:01:53 +01:00
parent b647f1f3a1
commit b987917a19
No known key found for this signature in database
GPG key ID: CD06B18E77F6A628
3 changed files with 0 additions and 7 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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 {