forked from TrueCloudLab/frostfs-node
[#1132] *: Use path/filepath
package when working with files
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
0decb95591
commit
674f520da7
20 changed files with 73 additions and 77 deletions
|
@ -2,7 +2,7 @@ package shard
|
|||
|
||||
import (
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/nspcc-dev/neofs-node/pkg/core/object"
|
||||
|
@ -19,7 +19,7 @@ func TestRefillMetabase(t *testing.T) {
|
|||
defer os.RemoveAll(p)
|
||||
|
||||
blobOpts := []blobstor.Option{
|
||||
blobstor.WithRootPath(path.Join(p, "blob")),
|
||||
blobstor.WithRootPath(filepath.Join(p, "blob")),
|
||||
blobstor.WithBlobovniczaShallowWidth(1),
|
||||
blobstor.WithBlobovniczaShallowDepth(1),
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ func TestRefillMetabase(t *testing.T) {
|
|||
sh := New(
|
||||
WithBlobStorOptions(blobOpts...),
|
||||
WithMetaBaseOptions(
|
||||
meta.WithPath(path.Join(p, "meta")),
|
||||
meta.WithPath(filepath.Join(p, "meta")),
|
||||
),
|
||||
)
|
||||
|
||||
|
@ -141,7 +141,7 @@ func TestRefillMetabase(t *testing.T) {
|
|||
sh = New(
|
||||
WithBlobStorOptions(blobOpts...),
|
||||
WithMetaBaseOptions(
|
||||
meta.WithPath(path.Join(p, "meta_restored")),
|
||||
meta.WithPath(filepath.Join(p, "meta_restored")),
|
||||
),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue