summaryrefslogtreecommitdiff
path: root/scripts/tests/Ice/faultTolerance.py
blob: bb00e6bf4a4c01674587e2666c66394034eb34e0 (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
#
# Copyright (c) ZeroC, Inc. All rights reserved.
#

from Util import *

# This is used for the trace file
props = lambda process, current: {
    "Ice.ProgramName": "server{}".format(process.args[0])
}

# Enable some tracing to allow investigating test failures
traceProps = {
    "Ice.Trace.Network": 3,
    "Ice.Trace.Retry": 1,
    "Ice.Trace.Protocol": 1,
}

#
# Start 12 servers
#
servers=range(1, 13)

TestSuite(__name__, [
    ClientServerTestCase(client=Client(args=[i for i in servers]),
                         servers=[Server(args=[i], waitForShutdown=False, props=props, quiet=True) for i in servers],
                         traceProps=traceProps)
])