[#1686] pilorama: Add generic tests

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
support/v0.34
Evgenii Stratonikov 2022-08-22 14:43:09 +03:00 committed by fyrchik
parent b8b9d25f9d
commit 482a7e7f2f
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
package pilorama
import (
"os"
"path/filepath"
"strconv"
"testing"
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/internal/storagetest"
)
func TestGeneric(t *testing.T) {
defer func() { _ = os.RemoveAll(t.Name()) }()
var n int
newPilorama := func(t *testing.T) storagetest.Component {
n++
dir := filepath.Join(t.Name(), strconv.Itoa(n))
return NewBoltForest(
WithPath(dir))
}
storagetest.TestAll(t, newPilorama)
}