summaryrefslogtreecommitdiffstats
path: root/tests/units
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-01-21 12:06:12 +0100
committerAlvaro Neira Ayuso <aneira@soleta.eu>2020-01-21 17:32:57 +0100
commitca0a62f9c69e13e0c74b099de85f52a9daf0df54 (patch)
treef07dbf484c090305dc5759863b249a9aa1c0a3c3 /tests/units
parentd401c9ff468b3df106b2693611661c3870d5b89d (diff)
Fix /software command Linux operation
This patch runs the script InventarioSoftware with the right arguments. This also increases the recv buffer size for the test server.
Diffstat (limited to 'tests/units')
-rw-r--r--tests/units/server.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/units/server.py b/tests/units/server.py
index 6020112..864b75c 100644
--- a/tests/units/server.py
+++ b/tests/units/server.py
@@ -15,6 +15,7 @@ class Server():
_probe_msg = 'POST /probe HTTP/1.0\r\nContent-Length:'+ \
str(len(_probe_json)) + \
'\r\nContent-Type:application/json\r\n\r\n' + _probe_json
+ _recv_buffer_size = 16384
def __init__(self, host='127.0.0.1', port=1234):
self.host = host
@@ -40,7 +41,7 @@ class Server():
self.conn.send(msg.encode())
def recv(self):
- return self.conn.recv(1024).decode('utf-8')
+ return self.conn.recv(self._recv_buffer_size).decode('utf-8')
def stop(self):
self.conn.close()