From 08ebb053357ff7f25c5e25eac2c03d84d0bba952 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Mon, 22 Sep 2014 16:49:01 -0700 Subject: [PATCH] discovery: add a overfull case for waitNodes --- discovery/discovery_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/discovery/discovery_test.go b/discovery/discovery_test.go index bc0ec1ca2..416a50b73 100644 --- a/discovery/discovery_test.go +++ b/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 {