@@ -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 ())
0 commit comments