File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ optional-dependencies.test = [
77
77
" coverage<8" ,
78
78
" pytest<9" ,
79
79
" pytest-fixture-order<1" ,
80
+ " pytest-httpserver<2" ,
80
81
" pytest-ordering<1" ,
81
82
]
82
83
urls.changelog = " https://github.com/mqtt-tools/pytest-mqtt/blob/main/CHANGES.rst"
Original file line number Diff line number Diff line change 1
1
from pytest_mqtt .util import probe_tcp_connect
2
2
3
3
4
- def test_probe_tcp_connect_available ():
5
- assert probe_tcp_connect ("9.9.9.9" , 443 ) is True
4
+ def test_probe_tcp_connect_available (httpserver ):
5
+ assert probe_tcp_connect (httpserver . host , httpserver . port ) is True
6
6
7
7
8
8
def test_probe_tcp_connect_unavailable ():
9
- assert probe_tcp_connect ("9.9.9.9 " , 444 ) is False
9
+ assert probe_tcp_connect ("localhost " , 12345 ) is False
You can’t perform that action at this time.
0 commit comments