[sheepdog] [PATCH 2/2] tests/unit: fixed unittest error

Kai Zhang kyle at zelin.io
Tue Aug 6 14:18:12 CEST 2013


Signed-off-by: Kai Zhang <kyle at zelin.io>
---
 tests/unit/sheep/mock_group.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/unit/sheep/mock_group.c b/tests/unit/sheep/mock_group.c
index b05891d..27b9655 100644
--- a/tests/unit/sheep/mock_group.c
+++ b/tests/unit/sheep/mock_group.c
@@ -18,9 +18,9 @@
 MOCK_VOID_METHOD(sd_accept_handler, const struct sd_node *joined,
 		 const struct sd_node *members, size_t nr_members,
 		 const void *opaque)
-MOCK_VOID_METHOD(sd_join_handler, const struct sd_node *joining,
-		 const struct sd_node *nodes, size_t nr_nodes,
-		 void *opaque)
+MOCK_METHOD(sd_join_handler, bool, true, const struct sd_node *joining,
+	    const struct sd_node *nodes, size_t nr_nodes,
+	    void *opaque)
 MOCK_VOID_METHOD(sd_leave_handler, const struct sd_node *left,
 		 const struct sd_node *members, size_t nr_members)
 MOCK_VOID_METHOD(sd_notify_handler, const struct sd_node *sender, void *msg,
-- 
1.7.9.5




More information about the sheepdog mailing list