forked from TrueCloudLab/frostfs-node
[#1527] engine/test: Move default metabase options to separate function
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
This commit is contained in:
parent
60feed3b5f
commit
9cabca9dfe
1 changed files with 10 additions and 6 deletions
|
@ -89,12 +89,16 @@ func testGetDefaultShardOptions(t testing.TB) []shard.Option {
|
|||
blobstor.WithLogger(test.NewLogger(t)),
|
||||
),
|
||||
shard.WithPiloramaOptions(pilorama.WithPath(filepath.Join(t.TempDir(), "pilorama"))),
|
||||
shard.WithMetaBaseOptions(
|
||||
meta.WithPath(filepath.Join(t.TempDir(), "metabase")),
|
||||
meta.WithPermissions(0o700),
|
||||
meta.WithEpochState(epochState{}),
|
||||
meta.WithLogger(test.NewLogger(t)),
|
||||
),
|
||||
shard.WithMetaBaseOptions(testGetDefaultMetabaseOptions(t)...),
|
||||
}
|
||||
}
|
||||
|
||||
func testGetDefaultMetabaseOptions(t testing.TB) []meta.Option {
|
||||
return []meta.Option{
|
||||
meta.WithPath(filepath.Join(t.TempDir(), "metabase")),
|
||||
meta.WithPermissions(0o700),
|
||||
meta.WithEpochState(epochState{}),
|
||||
meta.WithLogger(test.NewLogger(t)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue