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:
parent
abd98768e8
commit
f30ab827d2
5 changed files with 97 additions and 18 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue