From 49f82eaf47784da098965cf61b6e598dd3d7ea8e Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 23 Apr 2012 05:24:20 -0700 Subject: [PATCH] simplifying unit test --- testing.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/testing.cpp b/testing.cpp index 776e292..ed7eb32 100644 --- a/testing.cpp +++ b/testing.cpp @@ -213,15 +213,6 @@ static void testMap(Binding* binding, Protocol* protocol) { #endif -// -// Control -// - -void testComplete(bool* complete) { - *complete = true; -} - - // // Program entry // @@ -243,7 +234,6 @@ int main(int, char *[]) { Binding& binding = server.binding(); Protocol& protocol = client.protocol(); - bool complete = false; #ifdef TEST_C_STRING testCString(&binding, &protocol); @@ -269,10 +259,7 @@ int main(int, char *[]) { testMap(&binding, &protocol); #endif - binding.bind(FPARAM(testComplete)); - protocol.invoke("testComplete", &complete); - - while (!complete) { + while (protocol.pendingTasks()) { server.advance(); client.advance(); }