From 132fbb9bd658490ea77aae50e20257b680c3cceb Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 4 Aug 2016 22:34:19 +0300 Subject: Fix generator test problem --- tools/test-generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/test-generator.py') diff --git a/tools/test-generator.py b/tools/test-generator.py index b4edbfbaf..41a32a565 100755 --- a/tools/test-generator.py +++ b/tools/test-generator.py @@ -37,7 +37,7 @@ def send(conn, lat, lon, course, alarm): if alarm: params = params + (('alarm', 'sos'),) conn.request('GET', '?' + urllib.urlencode(params)) - conn.getresponse() + conn.getresponse().read() def course(lat1, lon1, lat2, lon2): lat1 = lat1 * math.pi / 180 @@ -58,4 +58,4 @@ while True: alarm = ((index % 10) == 0) send(conn, lat1, lon1, course(lat1, lon1, lat2, lon2), alarm) time.sleep(period) - index += 1 \ No newline at end of file + index += 1 -- cgit v1.2.3