mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 04:30:26 +03:00
Object layer tests revamp for individual execution (#2134)
This commit is contained in:
committed by
Harshavardhana
parent
282044d454
commit
2c837128ef
+2
-2
@@ -601,14 +601,14 @@ func removeDiskN(disks []string, n int) {
|
||||
}
|
||||
|
||||
// Regular object test type.
|
||||
type objTestType func(obj ObjectLayer, instanceType string, t *testing.T)
|
||||
type objTestType func(obj ObjectLayer, instanceType string, t TestErrHandler)
|
||||
|
||||
// Special object test type for disk not found situations.
|
||||
type objTestDiskNotFoundType func(obj ObjectLayer, instanceType string, dirs []string, t *testing.T)
|
||||
|
||||
// ExecObjectLayerTest - executes object layer tests.
|
||||
// Creates single node and XL ObjectLayer instance and runs test for both the layers.
|
||||
func ExecObjectLayerTest(t *testing.T, objTest objTestType) {
|
||||
func ExecObjectLayerTest(t TestErrHandler, objTest objTestType) {
|
||||
objLayer, fsDir, err := getSingleNodeObjectLayer()
|
||||
if err != nil {
|
||||
t.Fatalf("Initialization of object layer failed for single node setup: %s", err)
|
||||
|
||||
Reference in New Issue
Block a user