From 5ff43b1a4abd06a47a996b817846567f8d1bc615 Mon Sep 17 00:00:00 2001
From: Mike Buland <eichlan@xagasoft.com>
Date: Fri, 25 Aug 2006 22:44:09 +0000
Subject: Fixed more stuff in the connection class.  Yay.

---
 src/test/clistress/main.cpp | 6 ++++--
 src/test/srvstress/main.cpp | 4 ++++
 2 files changed, 8 insertions(+), 2 deletions(-)

(limited to 'src/test')

diff --git a/src/test/clistress/main.cpp b/src/test/clistress/main.cpp
index 0869945..6b0ac66 100644
--- a/src/test/clistress/main.cpp
+++ b/src/test/clistress/main.cpp
@@ -6,10 +6,12 @@ int main()
 
 	c.open("localhost", 4001 );
 
-	c.appendOutput("d");
+	c.appendOutput("w");
 	c.writeOutput();
 
-	c.waitForInput( 5, 40, 0 );
+	c.waitForInput( 6, 5, 0 );
+
+	printf("read: %s\n", c.getInput() );
 
 	c.close();
 
diff --git a/src/test/srvstress/main.cpp b/src/test/srvstress/main.cpp
index c7795e4..7fe7657 100644
--- a/src/test/srvstress/main.cpp
+++ b/src/test/srvstress/main.cpp
@@ -13,6 +13,10 @@ public:
 			case 'd':
 				throw "Hello";
 				break;
+
+			case 'w':
+				getConnection()->appendOutput("Hello");
+				break;
 		};
 
 		return true;
-- 
cgit v1.2.3