Skip to content

Commit aa5a651

Browse files
author
Peng Zhou
committed
improve timeout for testing
1 parent 9ef531e commit aa5a651

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/2_marklogic_cluster_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ type DataSource struct {
114114
}
115115

116116
func TestMarklogicCluster(t *testing.T) {
117-
feature := features.New("Marklogic Cluster Test")
117+
feature := features.New("Marklogic Cluster Test").WithLabel("type", "cluster-test")
118118

119119
// Setup Loki and Grafana to verify Logging for Operator
120120
feature.Setup(func(ctx context.Context, t *testing.T, c *envconf.Config) context.Context {
@@ -228,7 +228,7 @@ func TestMarklogicCluster(t *testing.T) {
228228
client := c.Client()
229229

230230
podName := "node-0"
231-
err := utils.WaitForPod(ctx, t, client, mlNamespace, podName, 120*time.Second)
231+
err := utils.WaitForPod(ctx, t, client, mlNamespace, podName, 180*time.Second)
232232
if err != nil {
233233
t.Fatalf("Failed to wait for pod creation: %v", err)
234234
}
@@ -300,7 +300,7 @@ func TestMarklogicCluster(t *testing.T) {
300300
if err != nil {
301301
t.Fatalf("Failed to execute kubectl command in grafana pod: %v", err)
302302
}
303-
// t.Logf("Query datasource response: %s", output)
303+
t.Logf("Query datasource response: %s", output)
304304
// Verify MarkLogic logs in Grafana using Loki and Fluent Bit
305305
if !(strings.Contains(string(output), "Starting MarkLogic Server")) {
306306
t.Fatal("Failed to Query datasource")

0 commit comments

Comments
 (0)