mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
Fix device/test_http_client tests (#5309)
* update HTTPClient API usage skip the second POST as end() has different semantics and nulls the client pointer use bearssl in ssl tests add delay in python side when shutting down http web server so MacOS does not complain about address already in use * fix crash if GET/POST was called after end() without a new begin() update double POST test to insure no crash if POST called after end() test now are for both AxTLS and BearSSL * fix small comment typo
This commit is contained in:
@ -4,6 +4,7 @@ from threading import Thread
|
||||
import urllib2
|
||||
import os
|
||||
import ssl
|
||||
import time
|
||||
|
||||
@setup('HTTP GET & POST requests')
|
||||
def setup_http_get(e):
|
||||
@ -34,6 +35,7 @@ def setup_http_get(e):
|
||||
def teardown_http_get(e):
|
||||
response = urllib2.urlopen('http://localhost:8088/shutdown')
|
||||
html = response.read()
|
||||
time.sleep(30)
|
||||
|
||||
|
||||
@setup('HTTPS GET request')
|
||||
|
Reference in New Issue
Block a user