Skip to content

Commit 239547c

Browse files
author
Peng Zhou
committed
increase sleep for slower testing pipeline
1 parent 99911b6 commit 239547c

File tree

8 files changed

+11
-13
lines changed

8 files changed

+11
-13
lines changed

test/e2e/admin_secrets_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func TestMlAdminSecrets(t *testing.T) {
5858

5959
podName := releaseName + "-marklogic-0"
6060
// wait until the pod is in Ready status
61-
k8s.WaitUntilPodAvailable(t, kubectlOptions, podName, 10, 15*time.Second)
61+
k8s.WaitUntilPodAvailable(t, kubectlOptions, podName, 15, 15*time.Second)
6262

6363
// get corev1.Pod to get logs of a pod
6464
pod := k8s.GetPod(t, kubectlOptions, podName)

test/e2e/clustering_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func TestClusterJoin(t *testing.T) {
6565
podName := releaseName + "-marklogic-1"
6666

6767
// wait until the pod is in Ready status
68-
k8s.WaitUntilPodAvailable(t, kubectlOptions, podName, 10, 20*time.Second)
68+
k8s.WaitUntilPodAvailable(t, kubectlOptions, podName, 15, 20*time.Second)
6969
tunnel := k8s.NewTunnel(
7070
kubectlOptions, k8s.ResourceTypePod, podName, 8002, 8002)
7171
defer tunnel.Close()

test/e2e/env_param_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func TestEnableConvertersAndLicense(t *testing.T) {
7272

7373
podName := releaseName + "-marklogic-0"
7474
// wait until the pod is in Ready status
75-
k8s.WaitUntilPodAvailable(t, kubectlOptions, podName, 10, 15*time.Second)
75+
k8s.WaitUntilPodAvailable(t, kubectlOptions, podName, 15, 15*time.Second)
7676
tunnel := k8s.NewTunnel(
7777
kubectlOptions, k8s.ResourceTypePod, podName, 8001, 8001)
7878
defer tunnel.Close()

test/e2e/install_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func TestHelmInstall(t *testing.T) {
6060

6161
tlsConfig := tls.Config{}
6262
// wait until the pod is in Ready status
63-
k8s.WaitUntilPodAvailable(t, kubectlOptions, podName, 10, 15*time.Second)
63+
k8s.WaitUntilPodAvailable(t, kubectlOptions, podName, 15, 15*time.Second)
6464
tunnel7997 := k8s.NewTunnel(kubectlOptions, k8s.ResourceTypePod, podName, 7997, 7997)
6565
defer tunnel7997.Close()
6666
tunnel7997.ForwardPort(t)

test/e2e/ready_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func TestMarklogicReady(t *testing.T) {
6767

6868
podName := releaseName + "-marklogic-0"
6969
// wait until the pod is in Ready status
70-
k8s.WaitUntilPodAvailable(t, kubectlOptions, podName, 10, 15*time.Second)
70+
k8s.WaitUntilPodAvailable(t, kubectlOptions, podName, 15, 15*time.Second)
7171
tunnel := k8s.NewTunnel(
7272
kubectlOptions, k8s.ResourceTypePod, podName, 8001, 8001)
7373
defer tunnel.Close()

test/e2e/scaling_test.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func TestHelmScaleUp(t *testing.T) {
9090

9191
numOfHosts := 1
9292
client := req.C()
93-
resp, err := client.R().
93+
_, err := client.R().
9494
SetDigestAuth(username, password).
9595
SetRetryCount(3).
9696
SetRetryFixedInterval(10 * time.Second).
@@ -108,7 +108,6 @@ func TestHelmScaleUp(t *testing.T) {
108108
return numOfHosts != 2
109109
}).
110110
Get("http://localhost:8002/manage/v2/hosts?view=status&format=json")
111-
defer resp.Body.Close()
112111

113112
if err != nil {
114113
t.Fatalf(err.Error())
@@ -167,7 +166,7 @@ func TestHelmScaleDown(t *testing.T) {
167166
podName1 := releaseName + "-marklogic-1"
168167

169168
// wait until the pod is in Ready status
170-
k8s.WaitUntilPodAvailable(t, kubectlOptions, podName1, 10, 20*time.Second)
169+
k8s.WaitUntilPodAvailable(t, kubectlOptions, podName1, 15, 20*time.Second)
171170

172171
newOptions := &helm.Options{
173172
KubectlOptions: kubectlOptions,
@@ -194,7 +193,7 @@ func TestHelmScaleDown(t *testing.T) {
194193

195194
numOfHostsOffline := 1
196195
client := req.C()
197-
resp, err := client.R().
196+
_, err := client.R().
198197
SetDigestAuth(username, password).
199198
SetRetryCount(3).
200199
SetRetryFixedInterval(10 * time.Second).
@@ -212,7 +211,6 @@ func TestHelmScaleDown(t *testing.T) {
212211
return numOfHostsOffline != 1
213212
}).
214213
Get("http://localhost:8002/manage/v2/hosts?view=status&format=json")
215-
defer resp.Body.Close()
216214

217215
if err != nil {
218216
t.Fatalf(err.Error())

test/e2e/separate_nodes_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func TestSeparateEDnode(t *testing.T) {
7373
helm.Install(t, options, helmChartPath, dnodeReleaseName)
7474

7575
// wait until the pod is in ready status
76-
k8s.WaitUntilPodAvailable(t, kubectlOptions, dnodePodName, 10, 20*time.Second)
76+
k8s.WaitUntilPodAvailable(t, kubectlOptions, dnodePodName, 15, 20*time.Second)
7777

7878
tunnel := k8s.NewTunnel(
7979
kubectlOptions, k8s.ResourceTypePod, dnodePodName, 8002, 8002)
@@ -269,7 +269,7 @@ func TestIncorrectBootsrapHostname(t *testing.T) {
269269
helm.Install(t, options, helmChartPath, dnodeReleaseName)
270270

271271
// wait until the pod is in ready status
272-
k8s.WaitUntilPodAvailable(t, kubectlOptions, dnodePodName, 10, 20*time.Second)
272+
k8s.WaitUntilPodAvailable(t, kubectlOptions, dnodePodName, 15, 20*time.Second)
273273

274274
tunnel := k8s.NewTunnel(
275275
kubectlOptions, k8s.ResourceTypePod, dnodePodName, 8002, 8002)

test/testUtil/helm_install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ func HelmInstall(t *testing.T, options map[string]string, releaseName string, ku
2828

2929
podName := releaseName + "-marklogic-0"
3030
// wait until the pod is in Ready status
31-
k8s.WaitUntilPodAvailable(t, kubectlOpt, podName, 10, 15*time.Second)
31+
k8s.WaitUntilPodAvailable(t, kubectlOpt, podName, 15, 15*time.Second)
3232
return podName
3333
}

0 commit comments

Comments
 (0)