summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/connection
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-22 10:02:49 +0200
committerNoel Grandin <noel@peralex.com>2015-01-12 08:36:17 +0200
commit09330056a01a4b5c3d16e3ffb6c1bff36099eb83 (patch)
treeefa793bee83eed4081edd52737e73216a3048b89 /qadevOOo/tests/java/ifc/connection
parent4bf4e3d40778051f1f886c47dd2b2bef82acf1e5 (diff)
java: simplify sleeping and waiting in tests
- remove the SHORT_WAIT test parameter, no-one is using it - inline the various independent shortWait() methods - use the util.utils.shortWait() utility method everywhere Change-Id: I93cd4a2580172a1441d2ff3d390f52b9505e2721
Diffstat (limited to 'qadevOOo/tests/java/ifc/connection')
-rw-r--r--qadevOOo/tests/java/ifc/connection/_XAcceptor.java5
-rw-r--r--qadevOOo/tests/java/ifc/connection/_XConnector.java5
2 files changed, 2 insertions, 8 deletions
diff --git a/qadevOOo/tests/java/ifc/connection/_XAcceptor.java b/qadevOOo/tests/java/ifc/connection/_XAcceptor.java
index f939eb2c0d42..f0b5dc850fe0 100644
--- a/qadevOOo/tests/java/ifc/connection/_XAcceptor.java
+++ b/qadevOOo/tests/java/ifc/connection/_XAcceptor.java
@@ -146,10 +146,7 @@ public class _XAcceptor extends MultiMethodTest {
acception = new AcceptorThread(oObj) ;
acception.start() ;
- try {
- Thread.sleep(500);
- }
- catch (InterruptedException e) {}
+ util.utils.shortWait();
XConnection con = xConnector.connect(connectString) ;
diff --git a/qadevOOo/tests/java/ifc/connection/_XConnector.java b/qadevOOo/tests/java/ifc/connection/_XConnector.java
index adc8a044e711..5d63fafd2fc6 100644
--- a/qadevOOo/tests/java/ifc/connection/_XConnector.java
+++ b/qadevOOo/tests/java/ifc/connection/_XConnector.java
@@ -127,10 +127,7 @@ public class _XConnector extends MultiMethodTest {
acceptorThread = new AcceptorThread(xAcceptor) ;
acceptorThread.start() ;
- try {
- Thread.sleep(500);
- }
- catch (InterruptedException e) {}
+ util.utils.shortWait();
// connect to acceptor
try {