summaryrefslogtreecommitdiff
path: root/tests/test-Sockets.cc
diff options
context:
space:
mode:
authorNicolas 'Pixel' Noble <pixel@nobis-crew.org>2013-01-18 09:15:34 -0800
committerNicolas 'Pixel' Noble <pixel@nobis-crew.org>2013-01-18 09:15:34 -0800
commit8e6f94ffffcc992c24393be15d8f984a5c5eef6f (patch)
treea77e51cb4c62752a9b6f84270763f7e6f2e235b0 /tests/test-Sockets.cc
parent8c5bdc2344dbc6c1629e258b7965442046600584 (diff)
Adding a sleep() paradigm to tasks.
Diffstat (limited to 'tests/test-Sockets.cc')
-rw-r--r--tests/test-Sockets.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test-Sockets.cc b/tests/test-Sockets.cc
index 4ef0a78..0bcfc2a 100644
--- a/tests/test-Sockets.cc
+++ b/tests/test-Sockets.cc
@@ -39,9 +39,7 @@ class Client : public Task {
public:
virtual const char * getName() const { return "Test client"; }
virtual void Do() {
- Events::Timeout evt(0.1);
- waitFor(&evt);
- yield();
+ sleep(0.1);
char x, y;
IO<Socket> s(new Socket());