summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--swift/test/Ice/ami/AllTests.swift10
1 files changed, 3 insertions, 7 deletions
diff --git a/swift/test/Ice/ami/AllTests.swift b/swift/test/Ice/ami/AllTests.swift
index d4c262dcdde..216e77e64e2 100644
--- a/swift/test/Ice/ami/AllTests.swift
+++ b/swift/test/Ice/ami/AllTests.swift
@@ -307,9 +307,7 @@ func allTests(_ helper: TestHelper, collocated: Bool = false) throws {
//
do {
try test(p.opBatchCount() == 0)
- let b1 = try uncheckedCast(prx: p.ice_getConnection()!.createProxy(p.ice_getIdentity()),
- type: TestIntfPrx.self).ice_batchOneway()
-
+ 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()
@@ -338,8 +336,7 @@ func allTests(_ helper: TestHelper, collocated: Bool = false) throws {
// Exceptions should not be reported.
//
try test(p.opBatchCount() == 0)
- let b1 = try uncheckedCast(prx: p.ice_getConnection()!.createProxy(p.ice_getIdentity()),
- type: TestIntfPrx.self).ice_batchOneway()
+ 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()),
@@ -366,8 +363,7 @@ func allTests(_ helper: TestHelper, collocated: Bool = false) throws {
// The sent callback should be invoked even if all connections fail.
//
try test(p.opBatchCount() == 0)
- let b1 = try uncheckedCast(prx: p.ice_getConnection()!.createProxy(p.ice_getIdentity()),
- type: TestIntfPrx.self).ice_batchOneway()
+ 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()),