chore: fix store contract test
Some checks failed
Release Please / release-please (push) Has been cancelled
Release Preview / call-reusable-release (push) Has been cancelled
Test / test-nix (push) Has been cancelled
Test / test-win (push) Has been cancelled
Update Restic / update-restic-version (push) Has been cancelled

This commit is contained in:
Gareth
2025-09-30 23:36:07 -07:00
parent 2ced790340
commit 4357295a17
3 changed files with 3 additions and 3 deletions

View File

@@ -716,7 +716,7 @@ func newPeerUnderTest(t *testing.T, initialConfig *v1.Config) *peerUnderTest {
ctx, cancel := context.WithCancel(context.Background())
configMgr := &config.ConfigManager{Store: &config.MemoryStore{Config: initialConfig}}
opstore, err := sqlitestore.NewMemorySqliteStore()
opstore, err := sqlitestore.NewMemorySqliteStore(t)
t.Cleanup(func() { opstore.Close() })
if err != nil {
t.Fatalf("failed to create opstore: %v", err)

View File

@@ -26,7 +26,7 @@ func StoresForTest(t testing.TB) map[string]oplog.OpStore {
}
t.Cleanup(func() { sqlitestoreinst.Close() })
sqlitememstore, err := sqlitestore.NewMemorySqliteStore()
sqlitememstore, err := sqlitestore.NewMemorySqliteStore(t)
if err != nil {
t.Fatalf("error creating sqlite store: %s", err)
}

View File

@@ -412,7 +412,7 @@ func TestScheduling(t *testing.T) {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()
opstore, err := sqlitestore.NewMemorySqliteStore()
opstore, err := sqlitestore.NewMemorySqliteStore(t)
if err != nil {
t.Fatalf("failed to create opstore: %v", err)
}