Commit 43de385a authored by legoc's avatar legoc

Removed default options arg in server.start()

parent 5e9ba686
......@@ -27,7 +27,7 @@ def testCancelAll():
print("Starting stopcpp for cancelWaitings")
app = server.start("stopcpp", 0)
app = server.start("stopcpp")
# Start thread.
t = threading.Thread(target=cancelAll)
......@@ -49,7 +49,7 @@ def testCancelWaitFor():
print("Starting stopcpp for cancelWaitFor")
app = server.start("stopcpp", 0)
app = server.start("stopcpp")
# Start thread.
t = threading.Thread(target=cancelWaitFor, args=(app,))
......@@ -88,7 +88,7 @@ def testKillApplication():
print("Starting publisherlooppy for killing")
app = server.start("publisherlooppy", 0)
app = server.start("publisherlooppy")
# Start kill thread.
t = threading.Thread(target=killApplication, args=(app,))
......@@ -117,7 +117,7 @@ def testCancelSubscriber():
print("Starting publisherlooppy for testing cancel of a subscriber")
app = server.start("publisherlooppy", 0)
app = server.start("publisherlooppy")
# Create a subscriber.
subscriber = cameopy.Subscriber.create(app, "publisher")
......
......@@ -9,6 +9,6 @@ numberOfTimes = 1 if len(sys.argv) < 3 else int(sys.argv[1])
server = this.getServer()
for i in range(numberOfTimes):
app = server.start("errorpy", 0)
app = server.start("errorpy")
state = app.waitFor()
print("Finished the application", app.getNameId(), "with state", cameopy.toString(state), "and code", app.getExitCode())
......@@ -19,7 +19,7 @@ server = this.getServer()
for i in range(numberOfTimes):
app = server.start(applicationName, 0)
app = server.start(applicationName)
print("Started application", applicationName)
......
......@@ -28,7 +28,7 @@ for i in range(numberOfTimes):
apps = []
for j in range(N):
apps.append(server.start(applicationName, 0))
apps.append(server.start(applicationName))
print("Started application", applicationName)
# Process the requests, the requester application sends 10 requests.
......
......@@ -20,7 +20,7 @@ server = this.getServer()
for i in range(numberOfTimes):
app = server.start(applicationName, 0)
app = server.start(applicationName)
print("Started application", applicationName)
......
......@@ -11,7 +11,7 @@ server = this.getServer()
for i in range(numberOfTimes):
app = server.start("resultpy", 0);
app = server.start("resultpy");
result = app.getResult()
......
......@@ -9,6 +9,6 @@ numberOfTimes = 1 if len(sys.argv) < 3 else int(sys.argv[1])
server = this.getServer()
for i in range(numberOfTimes):
app = server.start("simplepy", 0)
app = server.start("simplepy")
state = app.waitFor()
print("Finished the application", app.getNameId(), "with state", cameopy.toString(state), "and code", app.getExitCode())
......@@ -12,7 +12,7 @@ server = this.getServer()
for i in range(numberOfTimes):
# Start the cpp app because handlers not supported in Python.
app = server.start("stopcpp", 0);
app = server.start("stopcpp");
print("Waiting 100ms...")
time.sleep(0.100)
......
......@@ -23,7 +23,7 @@ for i in range(numberOfTimes):
for j in range(5):
# Set the name of this application in args
args = [this.getName()]
app = server.start(applicationName, args, 0)
app = server.start(applicationName, args)
print("Started application", applicationName)
......
......@@ -9,6 +9,6 @@ numberOfTimes = 1 if len(sys.argv) < 3 else int(sys.argv[1])
server = this.getServer()
for i in range(numberOfTimes):
app = server.start("veryfastpy", 0)
app = server.start("veryfastpy")
state = app.waitFor()
print("Finished the application", app.getNameId(), "with state", cameopy.toString(state), "and code", app.getExitCode())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment