mirror of
https://github.com/traccar/traccar.git
synced 2025-01-07 03:07:01 +08:00
Improve integration tests
This commit is contained in:
parent
02bfa8faaa
commit
2c8945caa5
@ -180,8 +180,9 @@ def send_message(port, message):
|
|||||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
s.connect(('127.0.0.1', port))
|
s.connect(('127.0.0.1', port))
|
||||||
s.send(message.encode('ascii'))
|
s.send(message.encode('ascii'))
|
||||||
time.sleep(1.0)
|
time.sleep(0.5)
|
||||||
s.close()
|
s.close()
|
||||||
|
time.sleep(0.5)
|
||||||
|
|
||||||
def get_protocols(cookie, device_id):
|
def get_protocols(cookie, device_id):
|
||||||
params = { 'deviceId' : device_id, 'from' : '2000-01-01T00:00:00.000Z', 'to' : '2050-01-01T00:00:00.000Z' }
|
params = { 'deviceId' : device_id, 'from' : '2000-01-01T00:00:00.000Z', 'to' : '2050-01-01T00:00:00.000Z' }
|
||||||
|
Loading…
Reference in New Issue
Block a user