discovery: add a overfull case for waitNodes

This commit is contained in:
Xiang Li 2014-09-22 16:49:01 -07:00
parent fdfaf07c46
commit 08ebb05335

View File

@ -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 {