Author: jim.ma
Date: 2009-11-10 07:40:48 -0500 (Tue, 10 Nov 2009)
New Revision: 11104
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1666/JBWS1666TestCase.java
Log:
[JBWS-2817]:add sleep time to wait CopyJob copy the process inputstream;this will fix the
test failure occurs sometimes
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1666/JBWS1666TestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1666/JBWS1666TestCase.java 2009-11-10
11:54:00 UTC (rev 11103)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1666/JBWS1666TestCase.java 2009-11-10
12:40:48 UTC (rev 11104)
@@ -93,6 +93,8 @@
String command = javaCmd + " -Djava.endorsed.dirs=" + jbl + FS +
"endorsed -cp " + cp + " " + TestClient.class.getName() + "
" + getServerHost();
ByteArrayOutputStream bout = new ByteArrayOutputStream();
executeCommand(command, bout);
+ //wait the CopyJob to copy the process.inputStream
+ Thread.sleep(3000);
String res = null;
if (bout.toByteArray() != null) {
String output = new String(bout.toByteArray());
Show replies by date