You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2007/07/08 14:55:11 UTC
svn commit: r554363 -
/jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java
Author: sebb
Date: Sun Jul 8 05:55:10 2007
New Revision: 554363
URL: http://svn.apache.org/viewvc?view=rev&rev=554363
Log:
Add check that mirror server did not fail upon startup
Modified:
jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java
Modified: jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java?view=diff&rev=554363&r1=554362&r2=554363
==============================================================================
--- jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java (original)
+++ jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java Sun Jul 8 05:55:10 2007
@@ -80,6 +80,14 @@
output.write(TEST_FILE_CONTENT);
output.flush();
output.close();
+ try {
+ Thread.sleep(100);
+ } catch (InterruptedException e) {
+ }// Allow thread chance to fail
+ if (!webServerControl.isServerAlive()){
+ throw new Exception("Could not start mirror server");
+ }
+
}
protected void tearDown() throws Exception {
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org