Author: norman Date: Wed Nov 29 02:49:56 2006 New Revision: 480516 URL: http://svn.apache.org/viewvc?view=rev&rev=480516 Log: We have to read the exact amount of lines to get sure the output has completly readed. Attemp to fix sporadic failing test
Modified: james/server/trunk/src/test/org/apache/james/remotemanager/RemoteManagerTest.java Modified: james/server/trunk/src/test/org/apache/james/remotemanager/RemoteManagerTest.java URL: http://svn.apache.org/viewvc/james/server/trunk/src/test/org/apache/james/remotemanager/RemoteManagerTest.java?view=diff&rev=480516&r1=480515&r2=480516 ============================================================================== --- james/server/trunk/src/test/org/apache/james/remotemanager/RemoteManagerTest.java (original) +++ james/server/trunk/src/test/org/apache/james/remotemanager/RemoteManagerTest.java Wed Nov 29 02:49:56 2006 @@ -316,6 +316,8 @@ } public void testQuit() throws IOException { + int helpLines = 39; + finishSetUp(m_testConfiguration); connect(); login(); @@ -323,10 +325,11 @@ sendCommand("help"); delay(); assertTrue("command line is effective", readAnswer().size() > 0); - + readAnswer(helpLines); + sendCommand("quit"); delay(); - readAnswer(0); + assertTrue("",readAnswer(1).contains("Bye")); sendCommand("help"); delay(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]