diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-08-04 22:34:19 +0300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-08-04 22:34:19 +0300 |
commit | 132fbb9bd658490ea77aae50e20257b680c3cceb (patch) | |
tree | e479df37031e0d2afc527b0b76884b6de110949d /tools | |
parent | 656690d02dd5bbc5962bec63fb94ea7728b42327 (diff) | |
download | trackermap-server-132fbb9bd658490ea77aae50e20257b680c3cceb.tar.gz trackermap-server-132fbb9bd658490ea77aae50e20257b680c3cceb.tar.bz2 trackermap-server-132fbb9bd658490ea77aae50e20257b680c3cceb.zip |
Fix generator test problem
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/test-generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |