Skip to content

Commit

Permalink
Be more relaxed about the cluster name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmen committed Dec 3, 2014
1 parent e3b2ab1 commit 37a5d69
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/clusternodesinfo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ func TestGetAll(t *testing.T) {
c := NewTestConn()
nodesInfo, err := c.AllNodesInfo()
assert.T(t, err == nil, fmt.Sprintf("should not have gotten error, received: %v", err))
clustername := "elasticsearch"
assert.T(t, nodesInfo.ClusterName == clustername, fmt.Sprintf("clustername should have been %q, received: %q", clustername, nodesInfo.ClusterName))
assert.T(t, nodesInfo.ClusterName != "", fmt.Sprintf("clustername should have been not empty. received: %q", nodesInfo.ClusterName))
for _, node := range nodesInfo.Nodes {
assert.T(t, node.Settings != nil, fmt.Sprintf("Settings should not have been null"))
assert.T(t, node.OS != nil, fmt.Sprintf("OS should not have been null"))
Expand Down

0 comments on commit 37a5d69

Please sign in to comment.