Browse Source

refactor add debug info to remove_node test

Xiang Li 12 years ago
parent
commit
e427c85f03
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/functional/remove_node_test.go

+ 3 - 0
tests/functional/remove_node_test.go

@@ -1,6 +1,7 @@
 package test
 package test
 
 
 import (
 import (
+	"fmt"
 	"net/http"
 	"net/http"
 	"os"
 	"os"
 	"testing"
 	"testing"
@@ -31,6 +32,7 @@ func TestRemoveNode(t *testing.T) {
 		for i := 0; i < 2; i++ {
 		for i := 0; i < 2; i++ {
 			client.Do(rmReq)
 			client.Do(rmReq)
 
 
+			fmt.Println("send remove to node3 and wait for its exiting")
 			etcds[2].Wait()
 			etcds[2].Wait()
 
 
 			resp, err := c.Get("_etcd/machines")
 			resp, err := c.Get("_etcd/machines")
@@ -71,6 +73,7 @@ func TestRemoveNode(t *testing.T) {
 		// first kill the node, then remove it, then add it back
 		// first kill the node, then remove it, then add it back
 		for i := 0; i < 2; i++ {
 		for i := 0; i < 2; i++ {
 			etcds[2].Kill()
 			etcds[2].Kill()
+			fmt.Println("kill node3 and wait for its exiting")
 			etcds[2].Wait()
 			etcds[2].Wait()
 
 
 			client.Do(rmReq)
 			client.Do(rmReq)