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) {
73
73
74
74
numOfHosts := 0
75
75
client := req .C ()
76
- resp , err := client .R ().
76
+ _ , err := client .R ().
77
77
SetDigestAuth (username , password ).
78
78
SetRetryCount (5 ).
79
79
SetRetryFixedInterval (10 * time .Second ).
@@ -85,14 +85,15 @@ func TestClusterJoin(t *testing.T) {
85
85
totalHosts := gjson .Get (string (body ), `host-default-list.list-items.list-count.value` )
86
86
numOfHosts = int (totalHosts .Num )
87
87
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" )
89
90
}
90
91
return numOfHosts != 2
91
92
}).
92
93
Get ("http://localhost:8002/manage/v2/hosts?format=json" )
93
- defer resp .Body .Close ()
94
94
95
95
if err != nil {
96
+ t .Error ("Error getting hosts" )
96
97
t .Fatalf (err .Error ())
97
98
}
98
99
You can’t perform that action at this time.
0 commit comments