blob: cad129c08314c8abe8f80a4dfb79e02e980acf13 (
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
25
26
27
28
29
30
31
32
33
34
35
|
#!/usr/bin/env python
# **********************************************************************
#
# Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************
import Ice
import Dispatcher
from TestHelper import TestHelper
TestHelper.loadSlice("Test.ice")
import AllTests
class Client(TestHelper):
def run(self, args):
initData = Ice.InitializationData()
initData.properties = self.createTestProperties(args)
#
# Limit the send buffer size, this test relies on the socket
# send() blocking after sending a given amount of data.
#
initData.properties.setProperty("Ice.TCP.SndSize", "50000")
d = Dispatcher.Dispatcher()
initData.dispatcher = d.dispatch
with self.initialize(initData=initData) as communicator:
AllTests.allTests(self, communicator)
Dispatcher.Dispatcher.terminate()
|