diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-02-24 13:45:18 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-02-24 13:45:18 +0000 |
commit | 11bc6af107d98dd34721afadf175339c98398923 (patch) | |
tree | d234d4e69e6a614bcc22669cc846b57f6959a779 /jrt_test | |
parent | c8f23fab9479946224068a8b8ee2daf43d2cb22d (diff) |
Update test that is built directly in test.
Diffstat (limited to 'jrt_test')
-rw-r--r-- | jrt_test/src/tests/mockup-invoke/MockupInvoke.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/jrt_test/src/tests/mockup-invoke/MockupInvoke.java b/jrt_test/src/tests/mockup-invoke/MockupInvoke.java index 2609921e4f6..c73c6a71671 100644 --- a/jrt_test/src/tests/mockup-invoke/MockupInvoke.java +++ b/jrt_test/src/tests/mockup-invoke/MockupInvoke.java @@ -15,8 +15,13 @@ public class MockupInvoke { Request req = new Request("concat"); req.parameters().add(new StringValue(args[1])); req.parameters().add(new StringValue(args[2])); - orb.invokeBatch(spec, req, 60.0); - if (req.isError()) { + Target target = orb.connect(spec); + try { + target.invokeSync(req, 60.0); + } finally { + target.close(); + } + if (req.isError()) { System.out.println("error: " + req.errorCode() + ": " + req.errorMessage()); System.exit(0); |