forked from TrueCloudLab/frostfs-node
[#668] shard/test: Do not alter rootPath option
Supposedly, this was added to allow creating 2 different shards without subtest. Now we use t.TempDir() everywhere, so this should not be a problem. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
36759f8434
commit
a716db99db
1 changed files with 0 additions and 3 deletions
|
@ -54,7 +54,6 @@ func newCustomShard(t testing.TB, enableWriteCache bool, o shardOptions) *Shard
|
|||
|
||||
var sh *Shard
|
||||
if enableWriteCache {
|
||||
o.rootPath = filepath.Join(o.rootPath, "wc")
|
||||
switch o.wcOpts.Type {
|
||||
case writecacheconfig.TypeBBolt:
|
||||
o.wcOpts.BBoltOptions = append(
|
||||
|
@ -65,8 +64,6 @@ func newCustomShard(t testing.TB, enableWriteCache bool, o shardOptions) *Shard
|
|||
[]writecachebadger.Option{writecachebadger.WithPath(filepath.Join(o.rootPath, "wcache"))},
|
||||
o.wcOpts.BadgerOptions...)
|
||||
}
|
||||
} else {
|
||||
o.rootPath = filepath.Join(o.rootPath, "nowc")
|
||||
}
|
||||
|
||||
if o.bsOpts == nil {
|
||||
|
|
Loading…
Reference in a new issue