|
|
@ -153,6 +153,7 @@ func Test_ClientRegisterRequestRedirectOK(t *testing.T) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Test_ClientRegisterFollowerOK tests how the client responds to getting a list of nodes it can join.
|
|
|
|
func Test_ClientRegisterFollowerOK(t *testing.T) {
|
|
|
|
func Test_ClientRegisterFollowerOK(t *testing.T) {
|
|
|
|
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
|
|
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
|
|
if r.Method != "POST" {
|
|
|
|
if r.Method != "POST" {
|
|
|
|