forked from TrueCloudLab/frostfs-node
[#948] engine: Fix test file path
Before: `<t.Name()>.<id>.blobstor` After: `<t.Name()>/<id>.blobstor` Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
1950724a04
commit
5b6be7bc1c
3 changed files with 10 additions and 4 deletions
|
@ -2,6 +2,7 @@ package engine
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
cidtest "github.com/nspcc-dev/neofs-sdk-go/container/id/test"
|
||||
|
@ -10,7 +11,10 @@ import (
|
|||
|
||||
func TestExecBlocks(t *testing.T) {
|
||||
e := testNewEngineWithShardNum(t, 2) // number doesn't matter in this test, 2 is several but not many
|
||||
defer e.Close()
|
||||
t.Cleanup(func() {
|
||||
e.Close()
|
||||
os.RemoveAll(t.Name())
|
||||
})
|
||||
|
||||
// put some object
|
||||
obj := generateRawObjectWithCID(t, cidtest.GenerateID()).Object()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue