File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ func TestClusterJoin(t *testing.T) {
7373
7474 numOfHosts := 0
7575 client := req .C ()
76- resp , err := client .R ().
76+ _ , err := client .R ().
7777 SetDigestAuth (username , password ).
7878 SetRetryCount (5 ).
7979 SetRetryFixedInterval (10 * time .Second ).
@@ -85,14 +85,15 @@ func TestClusterJoin(t *testing.T) {
8585 totalHosts := gjson .Get (string (body ), `host-default-list.list-items.list-count.value` )
8686 numOfHosts = int (totalHosts .Num )
8787 if numOfHosts != 2 {
88- t .Log ("Waiting for MarkLogic hosts" )
88+ t .Log ("Number of hosts: " + string (totalHosts .Raw ))
89+ t .Log ("Waiting for MarkLogic count of MarkLogic hosts to be 2" )
8990 }
9091 return numOfHosts != 2
9192 }).
9293 Get ("http://localhost:8002/manage/v2/hosts?format=json" )
93- defer resp .Body .Close ()
9494
9595 if err != nil {
96+ t .Error ("Error getting hosts" )
9697 t .Fatalf (err .Error ())
9798 }
9899
You can’t perform that action at this time.
0 commit comments