graph/db: skip TestGraphLoading for non-bbolt store

Let all the NewTestDB functions return the V1Store interface type
instead of pointers. Then add a manual skip in the TestGraphLoading test
for any non-bbolt backend. We can remove this once all the methods used
by the test have been implemented by the SQLStore. We only need the
manual skip for this one test since it is the only one that doesnt use
MakeGraphTest to init the graph db.
This commit is contained in:
Elle Mouton
2025-05-19 13:43:09 +02:00
parent cbdd1c22b7
commit 14ca086c72
4 changed files with 12 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ import (
// NewTestDB is a helper function that creates a SQLStore backed by a postgres
// database for testing. At the moment, it embeds a KVStore but once the
// SQLStore fully implements the V1Store interface, the KVStore will be removed.
func NewTestDB(t testing.TB) *SQLStore {
func NewTestDB(t testing.TB) V1Store {
backend, backendCleanup, err := kvdb.GetTestBackend(t.TempDir(), "cgr")
require.NoError(t, err)