Browse Source

etcdserver: removed an unhelpful test failure message

this commit changes instances of "blah" in a test to more
descriptive messages
Nikhil Sarda 11 years ago
parent
commit
a852936a59
1 changed files with 3 additions and 3 deletions
  1. 3 3
      etcdserver/etcdhttp/client_test.go

+ 3 - 3
etcdserver/etcdhttp/client_test.go

@@ -818,7 +818,7 @@ func TestServeMembersFail(t *testing.T) {
 				Header: map[string][]string{"Content-Type": []string{"application/json"}},
 				Header: map[string][]string{"Content-Type": []string{"application/json"}},
 			},
 			},
 			&errServer{
 			&errServer{
-				errors.New("blah"),
+				errors.New("Error while adding a member"),
 			},
 			},
 
 
 			http.StatusInternalServerError,
 			http.StatusInternalServerError,
@@ -858,7 +858,7 @@ func TestServeMembersFail(t *testing.T) {
 				Method: "DELETE",
 				Method: "DELETE",
 			},
 			},
 			&errServer{
 			&errServer{
-				errors.New("blah"),
+				errors.New("Error while removing member"),
 			},
 			},
 
 
 			http.StatusInternalServerError,
 			http.StatusInternalServerError,
@@ -1357,7 +1357,7 @@ func TestBadServeKeys(t *testing.T) {
 			// etcdserver.Server error
 			// etcdserver.Server error
 			mustNewRequest(t, "foo"),
 			mustNewRequest(t, "foo"),
 			&errServer{
 			&errServer{
-				errors.New("blah"),
+				errors.New("Internal Server Error"),
 			},
 			},
 
 
 			http.StatusInternalServerError,
 			http.StatusInternalServerError,