Change receiveIsReady and processEvents to return immediately, with comment warnings that the caller needs to sleep to avoid using 100% CPU.
diff --git a/tests/test-get-async.cpp b/tests/test-get-async.cpp
index 4b66e7d..4d7d202 100644
--- a/tests/test-get-async.cpp
+++ b/tests/test-get-async.cpp
@@ -48,8 +48,11 @@
     face.expressInterest(Name("/ndn/ucla.edu/apps/ndn-js-test/hello.txt/level2/%FD%05%0B%16%7D%95%0E"), &closure);
     
     // The main event loop.
-    while (!closure.gotContent_)
-      face.processEvents();    
+    while (!closure.gotContent_) {
+      face.processEvents();
+      // We need to sleep for a few milliseconds so we don't use 100% of the CPU.
+      usleep(10000);
+    }
   } catch (std::exception &e) {
     cout << "exception: " << e.what() << endl;
   }