ソースを参照

discovery: add a overfull case for waitNodes

Xiang Li 11 年 前
コミット
08ebb05335
1 ファイル変更9 行追加0 行削除
  1. 9 0
      discovery/discovery_test.go

+ 9 - 0
discovery/discovery_test.go

@@ -162,6 +162,15 @@ func TestWaitNodes(t *testing.T) {
 			nil,
 			all,
 		},
+		{
+			append(all, &client.Node{Key: "/1000/4", CreatedIndex: 5}),
+			3,
+			[]*client.Response{
+				{Node: &client.Node{Key: "/1000/3", CreatedIndex: 4}},
+			},
+			nil,
+			all,
+		},
 	}
 
 	for i, tt := range tests {