forked from TrueCloudLab/frostfs-node
[#668] shard/test: Properly check event processing
See https://git.frostfs.info/TrueCloudLab/frostfs-node/actions/runs/1594/jobs/2 Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
39879fa868
commit
36759f8434
3 changed files with 47 additions and 34 deletions
|
@ -36,6 +36,8 @@ type shardOptions struct {
|
|||
wcOpts writecacheconfig.Options
|
||||
bsOpts []blobstor.Option
|
||||
metaOptions []meta.Option
|
||||
|
||||
additionalShardOptions []Option
|
||||
}
|
||||
|
||||
func newShard(t testing.TB, enableWriteCache bool) *Shard {
|
||||
|
@ -114,6 +116,7 @@ func newCustomShard(t testing.TB, enableWriteCache bool, o shardOptions) *Shard
|
|||
}),
|
||||
WithGCRemoverSleepInterval(100 * time.Millisecond),
|
||||
}
|
||||
opts = append(opts, o.additionalShardOptions...)
|
||||
|
||||
sh = New(opts...)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue