소스 검색

fix sinceIndex

Xiang Li 12 년 전
부모
커밋
28ac516f68
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      server/v2/tests/get_handler_test.go

+ 1 - 1
server/v2/tests/get_handler_test.go

@@ -118,7 +118,7 @@ func TestV2WatchKeyWithIndex(t *testing.T) {
 		var body map[string]interface{}
 		var body map[string]interface{}
 		c := make(chan bool)
 		c := make(chan bool)
 		go func() {
 		go func() {
-			resp, _ := tests.Get(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar?wait=true&waitIndex=5"))
+			resp, _ := tests.Get(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar?wait=true&waitIndex=4"))
 			body = tests.ReadBodyJSON(resp)
 			body = tests.ReadBodyJSON(resp)
 			c <- true
 			c <- true
 		}()
 		}()