From 7972eb3235c5ce87c1d0c91da756732dd0f79437 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Sat, 9 May 2020 11:17:24 +0200 Subject: [PATCH] Updated handler test to send response back to test client. --- testing/type1Handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/type1Handler.py b/testing/type1Handler.py index 4b5a577..603f034 100644 --- a/testing/type1Handler.py +++ b/testing/type1Handler.py @@ -24,8 +24,8 @@ def runTest(): bys = json.dumps({ "header" : { "status" : "0", - "command" : {"type" : "sendServers", "data": ["10.1.0.7:2223"]} - }, "data" : receivedBys }) + "command" : {"type" : "sendClients", "data": ["deavmi"]} + }, "data" : "length of your data: " + str(len(receivedBys)) + "\"" + receivedBys + "\"" }) print(s.send(len(bys).to_bytes(4, "little"))) print(s.send(bys.encode()))