datacommsserver/esockserver/test/TE_RConnectionSuite/src/TE_RConnectionDummyNifTestSteps.cpp
branchRCL_3
changeset 14 4ccf8e394726
parent 9 77effd21b2c9
child 21 07656293a99c
--- a/datacommsserver/esockserver/test/TE_RConnectionSuite/src/TE_RConnectionDummyNifTestSteps.cpp	Wed Mar 31 23:27:09 2010 +0300
+++ b/datacommsserver/esockserver/test/TE_RConnectionSuite/src/TE_RConnectionDummyNifTestSteps.cpp	Wed Apr 14 17:14:05 2010 +0300
@@ -232,7 +232,6 @@
 void CConnectionTest1b::Start()
 	{
 	INFO_PRINTF1(_L("Starting Connection"));
-
 	iConnection.Start(iStatus);
 	SetActive();
 	}
@@ -1948,6 +1947,10 @@
 
 	TESTEL(KErrNone == progress().iError, progress().iError);
 	TESTEL(ECsdStartingHangUp == progress().iStage, progress().iStage);
+	
+	INFO_PRINTF1(_L("Waiting for KConnectionDown and KConnectionUninitialised. If the test times-out they didn't come (in the right seq)."));
+    WaitForRelevantProgress(conn1, progress, KConnectionDown);
+    WaitForRelevantProgress(conn1, progress, KConnectionUninitialised); 
 
 	CloseConnection(conn1);
 	CleanupStack::Pop();
@@ -5088,6 +5091,10 @@
 
 	TESTEL(KErrNone == progress().iError, progress().iError);
 	TESTEL(ECsdStartingHangUp == progress().iStage, progress().iStage);
+	
+    INFO_PRINTF1(_L("Waiting for KConnectionDown and KConnectionUninitialised. If the test times-out they didn't come (in the right seq)."));	
+    WaitForRelevantProgress(conn1, progress, KConnectionDown);
+    WaitForRelevantProgress(conn1, progress, KConnectionUninitialised);	
 
 	CloseConnection(conn1);
 	CleanupStack::Pop();