Remove memdb for gist init (#421)

This commit is contained in:
Thomas Miceli
2025-01-30 10:46:35 +01:00
committed by GitHub
parent 62d56cd1c7
commit 76fc129c09
8 changed files with 80 additions and 101 deletions

View File

@ -21,7 +21,6 @@ import (
"github.com/thomiceli/opengist/internal/config"
"github.com/thomiceli/opengist/internal/db"
"github.com/thomiceli/opengist/internal/git"
"github.com/thomiceli/opengist/internal/memdb"
"github.com/thomiceli/opengist/internal/web/server"
)
@ -183,9 +182,6 @@ func Setup(t *testing.T) *TestServer {
log.Fatal().Err(err).Msg("Could not initialize database")
}
err = memdb.Setup()
require.NoError(t, err, "Could not initialize in memory database")
// err = index.Open(filepath.Join(homePath, "testsindex", "opengist.index"))
// require.NoError(t, err, "Could not open index")