diff options
author | Bernard Normier <bernard@zeroc.com> | 2019-06-19 16:48:41 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2019-06-19 16:48:41 -0400 |
commit | 9d6fab5597581c81213b4c90b0d19cbd0b484065 (patch) | |
tree | d872fee3a5d1e47755fc51c2bd7c741d299c78a4 | |
parent | Regenerate test project and add missing dependencies (diff) | |
download | ice-9d6fab5597581c81213b4c90b0d19cbd0b484065.tar.bz2 ice-9d6fab5597581c81213b4c90b0d19cbd0b484065.tar.xz ice-9d6fab5597581c81213b4c90b0d19cbd0b484065.zip |
Consistency fix
-rw-r--r-- | swift/test/Ice/ami/AllTests.swift | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/swift/test/Ice/ami/AllTests.swift b/swift/test/Ice/ami/AllTests.swift index 216e77e64e2..a5d26f93651 100644 --- a/swift/test/Ice/ami/AllTests.swift +++ b/swift/test/Ice/ami/AllTests.swift @@ -339,10 +339,7 @@ func allTests(_ helper: TestHelper, collocated: Bool = false) throws { let b1 = try p.ice_fixed(p.ice_getConnection()!).ice_batchOneway() let con = try p.ice_connectionId("2").ice_getConnection()! - let b2 = try uncheckedCast(prx: con.createProxy(p.ice_getIdentity()), - type: TestIntfPrx.self).ice_batchOneway() - - _ = try b2.ice_getConnection() // Ensure connection is established. + let b2 = p.ice_fixed(con).ice_batchOneway() try b1.opBatch() try b2.opBatch() try b1.ice_getConnection()!.close(.GracefullyWithWait) @@ -366,10 +363,7 @@ func allTests(_ helper: TestHelper, collocated: Bool = false) throws { let b1 = try p.ice_fixed(p.ice_getConnection()!).ice_batchOneway() let con = try p.ice_connectionId("2").ice_getConnection()! - let b2 = try uncheckedCast(prx: con.createProxy(p.ice_getIdentity()), - type: TestIntfPrx.self).ice_batchOneway() - - _ = try b2.ice_getConnection() // Ensure connection is established. + let b2 = p.ice_fixed(con).ice_batchOneway() try b1.opBatch() try b2.opBatch() try b1.ice_getConnection()!.close(.GracefullyWithWait) |