Exemple #1
0
func TestClient(t *testing.T) {
	client = new(pecelclient.Client)
	e := client.Connect(coordinator.Address, password, userID)
	if e != nil {
		t.Error(e.Error())
	}
}
Exemple #2
0
func TestClient(t *testing.T) {
	checkTestSkip(t)
	client = new(pecelclient.Client)
	e := client.Connect(server.Address, serverSecret, "ariefdarmawan")
	//e := client.Connect(server.Address, serverSecret+"_10", "ariefdarmawan")
	if e != nil {
		t.Error(e.Error())
		return
	}

	var result *toolkit.Result
	result = client.Call("ping", toolkit.M{})
	checkResult(result, t)
}