diff --git a/pkg/local_object_storage/metabase/generic_test.go b/pkg/local_object_storage/metabase/generic_test.go new file mode 100644 index 0000000000..376dd197a1 --- /dev/null +++ b/pkg/local_object_storage/metabase/generic_test.go @@ -0,0 +1,25 @@ +package meta + +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 + newMetabase := func(t *testing.T) storagetest.Component { + n++ + dir := filepath.Join(t.Name(), strconv.Itoa(n)) + return New( + WithEpochState(epochStateImpl{}), + WithPath(dir)) + } + + storagetest.TestAll(t, newMetabase) +}