summaryrefslogtreecommitdiff
path: root/swift/test/Ice/facets/Client.swift
blob: 6f64f7dcfffb8149dd05ec1702a13909bb9bbc69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

import Ice
import PromiseKit
import TestCommon

public class Client: TestHelperI {
    public override func run(args: [String]) throws {
        let properties = try createTestProperties(args)
        properties.setProperty(key: "Ice.Warn.Connections", value: "0")
        properties.setProperty(key: "Ice.MessageSizeMax", value: "10") // 10KB max
        var initData = Ice.InitializationData()
        initData.properties = properties
        let communicator = try initialize(initData)
        communicator.getProperties().setProperty(key: "TestAdapter.Endpoints", value: getTestEndpoint(num: 0))
        defer {
            communicator.destroy()
        }
        let g = try allTests(self)
        try g.shutdown()
    }
}