aboutsummaryrefslogtreecommitdiff
path: root/roomserver/internal/input/input_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'roomserver/internal/input/input_test.go')
-rw-r--r--roomserver/internal/input/input_test.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/roomserver/internal/input/input_test.go b/roomserver/internal/input/input_test.go
index 7c65f9ea..4708560a 100644
--- a/roomserver/internal/input/input_test.go
+++ b/roomserver/internal/input/input_test.go
@@ -48,10 +48,6 @@ func TestSingleTransactionOnInput(t *testing.T) {
Kind: api.KindOutlier, // don't panic if we generate an output event
Event: event.Headered(gomatrixserverlib.RoomVersionV6),
}
- cache, err := caching.NewInMemoryLRUCache(false)
- if err != nil {
- t.Fatal(err)
- }
db, err := storage.Open(
nil,
&config.DatabaseOptions{
@@ -59,7 +55,7 @@ func TestSingleTransactionOnInput(t *testing.T) {
MaxOpenConnections: 1,
MaxIdleConnections: 1,
},
- cache,
+ caching.NewRistrettoCache(8*1024*1024, time.Hour, false),
)
if err != nil {
t.Logf("PostgreSQL not available (%s), skipping", err)