From 74e40ccfb4cd1d4902c75e04a5c97fa28ebfbd7b Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 6 Dec 2023 14:05:08 +0100 Subject: [PATCH] fix(files): keyvalue init in tests --- pkg/files/filehandling.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/files/filehandling.go b/pkg/files/filehandling.go index 937cc89aebf..d98e030379f 100644 --- a/pkg/files/filehandling.go +++ b/pkg/files/filehandling.go @@ -23,6 +23,8 @@ import ( "code.vikunja.io/api/pkg/config" "code.vikunja.io/api/pkg/db" "code.vikunja.io/api/pkg/log" + "code.vikunja.io/api/pkg/modules/keyvalue" + "github.com/spf13/afero" "github.com/stretchr/testify/assert" ) @@ -77,6 +79,8 @@ func InitTests() { } InitTestFileHandler() + + keyvalue.InitStorage() } // FileStat stats a file. This is an exported function to be able to test this from outide of the package