Browse Source

Merge pull request #1900 from diffoperator/etcd_tests

etcdserver: removed an unhelpful test failure message
Yicheng Qin 11 years ago
parent
commit
ce0b0ef418
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"}},
 			},
 			&errServer{
-				errors.New("blah"),
+				errors.New("Error while adding a member"),
 			},
 
 			http.StatusInternalServerError,
@@ -858,7 +858,7 @@ func TestServeMembersFail(t *testing.T) {
 				Method: "DELETE",
 			},
 			&errServer{
-				errors.New("blah"),
+				errors.New("Error while removing member"),
 			},
 
 			http.StatusInternalServerError,
@@ -1357,7 +1357,7 @@ func TestBadServeKeys(t *testing.T) {
 			// etcdserver.Server error
 			mustNewRequest(t, "foo"),
 			&errServer{
-				errors.New("blah"),
+				errors.New("Internal Server Error"),
 			},
 
 			http.StatusInternalServerError,