diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-01-19 10:38:23 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-01-19 10:38:23 +0100 |
commit | 7947d129ecd902da38d8036c34ed28aeab0d771d (patch) | |
tree | a7a9449c215be288759900023abed3b5b13997d1 /java-compat | |
parent | Added missing binding.py file (diff) | |
download | ice-7947d129ecd902da38d8036c34ed28aeab0d771d.tar.bz2 ice-7947d129ecd902da38d8036c34ed28aeab0d771d.tar.xz ice-7947d129ecd902da38d8036c34ed28aeab0d771d.zip |
Fixed spurious Ice/binding test failure
Diffstat (limited to 'java-compat')
-rw-r--r-- | java-compat/test/src/main/java/test/Ice/binding/AllTests.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/java-compat/test/src/main/java/test/Ice/binding/AllTests.java b/java-compat/test/src/main/java/test/Ice/binding/AllTests.java index 8b4147e0c7f..2acfb56bd2c 100644 --- a/java-compat/test/src/main/java/test/Ice/binding/AllTests.java +++ b/java-compat/test/src/main/java/test/Ice/binding/AllTests.java @@ -1012,6 +1012,11 @@ public class AllTests } catch(Ice.ConnectionRefusedException ex) { + // Close the connection now to free a FD (it could be done after the sleep but + // there could be race condiutation since the connection might not be closed + // immediately due to threading). + test.ice_connectionId("0").ice_getConnection().close(false); + // // The server closed the acceptor, wait one second and retry after freeing a FD. // @@ -1023,9 +1028,6 @@ public class AllTests { } - // Free a FD in the server - test.ice_connectionId("0").ice_getConnection().close(false); - try { test.ice_connectionId(Integer.toString(i)).ice_ping(); |