[#651] engine/test: Speedup StorageEngine_Inhume
All checks were successful
DCO action / DCO (pull_request) Successful in 4m29s
Build / Build Components (1.20) (pull_request) Successful in 8m45s
Build / Build Components (1.21) (pull_request) Successful in 8m39s
Vulncheck / Vulncheck (pull_request) Successful in 8m44s
Tests and linters / Staticcheck (pull_request) Successful in 12m37s
Tests and linters / Tests (1.20) (pull_request) Successful in 12m59s
Tests and linters / Tests (1.21) (pull_request) Successful in 13m3s
Tests and linters / Lint (pull_request) Successful in 13m26s
Tests and linters / Tests with -race (pull_request) Successful in 13m58s

Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
Alexander Chuprov 2023-11-29 10:51:56 +03:00
parent dcd2966177
commit d6c7424eaa

View file

@ -36,6 +36,7 @@ func TestStorageEngine_Inhume(t *testing.T) {
link.SetSplitID(splitID) link.SetSplitID(splitID)
t.Run("delete small object", func(t *testing.T) { t.Run("delete small object", func(t *testing.T) {
t.Parallel()
e := testNewEngine(t).setShardsNum(t, 1).engine e := testNewEngine(t).setShardsNum(t, 1).engine
defer e.Close(context.Background()) defer e.Close(context.Background())
@ -54,6 +55,7 @@ func TestStorageEngine_Inhume(t *testing.T) {
}) })
t.Run("delete big object", func(t *testing.T) { t.Run("delete big object", func(t *testing.T) {
t.Parallel()
s1 := testNewShard(t, 1) s1 := testNewShard(t, 1)
s2 := testNewShard(t, 2) s2 := testNewShard(t, 2)