[#1132] *: Use path/filepath package when working with files

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-02-02 16:28:08 +03:00 committed by LeL
parent 0decb95591
commit 674f520da7
20 changed files with 73 additions and 77 deletions

View file

@ -1,7 +1,7 @@
package state_test
import (
"path"
"path/filepath"
"testing"
"github.com/nspcc-dev/neofs-node/pkg/util/state"
@ -9,7 +9,7 @@ import (
)
func TestPersistentStorage_UInt32(t *testing.T) {
storage, err := state.NewPersistentStorage(path.Join(t.TempDir(), ".storage"))
storage, err := state.NewPersistentStorage(filepath.Join(t.TempDir(), ".storage"))
require.NoError(t, err)
defer storage.Close()