1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

Make integration test compile

This commit is contained in:
mcrakhman 2024-12-09 23:51:34 +01:00
parent abd98768e8
commit f30ab827d2
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
5 changed files with 97 additions and 18 deletions

View file

@ -14,6 +14,7 @@ import (
anystore "github.com/anyproto/any-store"
"golang.org/x/exp/slices"
"golang.org/x/sys/unix"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@ -141,6 +142,7 @@ func createNamedStore(ctx context.Context, t *testing.T, name string) anystore.D
t.Cleanup(func() {
err := db.Close()
require.NoError(t, err)
unix.Rmdir(path)
})
return testStore{
DB: db,