forked from TrueCloudLab/frostfs-node
[#321] metabase/test: execute tests in parallel
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
c8c5f14e2e
commit
c62025c836
7 changed files with 65 additions and 22 deletions
|
@ -20,6 +20,8 @@ import (
|
|||
)
|
||||
|
||||
func TestDB_SelectUserAttributes(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
db := newDB(t)
|
||||
|
||||
cnr := cidtest.ID()
|
||||
|
@ -142,6 +144,8 @@ func TestDB_SelectUserAttributes(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDB_SelectRootPhyParent(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
db := newDB(t)
|
||||
|
||||
cnr := cidtest.ID()
|
||||
|
@ -293,6 +297,8 @@ func TestDB_SelectRootPhyParent(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDB_SelectInhume(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
db := newDB(t)
|
||||
|
||||
cnr := cidtest.ID()
|
||||
|
@ -325,6 +331,8 @@ func TestDB_SelectInhume(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDB_SelectPayloadHash(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
db := newDB(t)
|
||||
|
||||
cnr := cidtest.ID()
|
||||
|
@ -393,6 +401,8 @@ func TestDB_SelectPayloadHash(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDB_SelectWithSlowFilters(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
db := newDB(t)
|
||||
|
||||
cnr := cidtest.ID()
|
||||
|
@ -498,6 +508,8 @@ func TestDB_SelectWithSlowFilters(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDB_SelectObjectID(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
db := newDB(t)
|
||||
|
||||
cnr := cidtest.ID()
|
||||
|
@ -611,6 +623,8 @@ func TestDB_SelectObjectID(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDB_SelectSplitID(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
db := newDB(t)
|
||||
|
||||
cnr := cidtest.ID()
|
||||
|
@ -665,6 +679,8 @@ func TestDB_SelectSplitID(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDB_SelectContainerID(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
db := newDB(t)
|
||||
|
||||
cnr := cidtest.ID()
|
||||
|
@ -750,6 +766,8 @@ func BenchmarkSelect(b *testing.B) {
|
|||
}
|
||||
|
||||
func TestExpiredObjects(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
db := newDB(t, meta.WithEpochState(epochState{currEpoch}))
|
||||
|
||||
checkExpiredObjects(t, db, func(exp, nonExp *objectSDK.Object) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue