Cleaned up ZK connection code by using the backoff function. Added a test to the end to end to test that we're getting the host correctly from ZK. Changed clusters test to be an outside package.

This commit is contained in:
Renan DelValle 2017-11-28 17:30:33 -08:00
parent f60aa3dd88
commit f6a21e0f59
3 changed files with 65 additions and 71 deletions

View file

@ -12,17 +12,18 @@
* limitations under the License.
*/
package realis
package realis_test
import (
"fmt"
"github.com/stretchr/testify/assert"
"testing"
"github.com/paypal/gorealis"
)
func TestLoadClusters(t *testing.T) {
clusters, err := LoadClusters("examples/clusters.json")
clusters, err := realis.LoadClusters("examples/clusters.json")
if err != nil {
fmt.Print(err)
}