Skip to content

Commit c1f7a99

Browse files
committed
Add comments to TestGetMasterPodInfo in pkg\ddc\alluxio\utils_test.go.
Signed-off-by: cbkjames23 <1411137090@qq.com>
1 parent ac33c1b commit c1f7a99

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pkg/ddc/alluxio/utils_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"reflect"
2424
"testing"
2525

26-
. "github.com/agiledragon/gomonkey/v2"
2726
"github.com/go-logr/logr"
2827
appsv1 "k8s.io/api/apps/v1"
2928
corev1 "k8s.io/api/core/v1"
@@ -600,6 +599,11 @@ func TestGetDaemonset(t *testing.T) {
600599
}
601600
}
602601

602+
// TestGetMasterPodInfo tests the getMasterPodInfo function of the AlluxioEngine struct.
603+
// It defines a set of test cases with expected pod and container names based on the engine's name.
604+
// The function iterates through the test cases, initializes an AlluxioEngine instance,
605+
// and verifies whether the returned pod name and container name match the expected values.
606+
603607
func TestGetMasterPodInfo(t *testing.T) {
604608
type fields struct {
605609
name string

0 commit comments

Comments
 (0)