mirror of https://github.com/docker/docs.git
fix test zk
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
030c715007
commit
a24e29de3f
|
|
@ -20,6 +20,6 @@ func TestCreateNodes(t *testing.T) {
|
|||
service := &ZkDiscoveryService{}
|
||||
assert.Equal(t, service.createNodes(nil), []*discovery.Node{})
|
||||
nodes := service.createNodes([]string{"127.0.0.1", "127.0.0.2"})
|
||||
assert.Equal(t, nodes[0].String(), "http://127.0.0.1")
|
||||
assert.Equal(t, nodes[1].String(), "http://127.0.0.2")
|
||||
assert.Equal(t, nodes[0].String(), "127.0.0.1")
|
||||
assert.Equal(t, nodes[1].String(), "127.0.0.2")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue