Skip to content

Commit 74532ad

Browse files
authored
Merge pull request #166 from asherf/mysql
also asset on chose port
2 parents b2cb292 + b4a1ce9 commit 74532ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django_prometheus/tests/test_exports.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def test_port_range_available(httpserver_mock):
1111
httpserver_mock.side_effect = [socket.error, MagicMock()]
1212
port_range = [8000, 8001]
1313
port_chosen = SetupPrometheusEndpointOnPortRange(port_range)
14+
assert port_chosen in port_range
1415

1516
expected_calls = [call(("", 8000), ANY), call(("", 8001), ANY)]
1617
assert httpserver_mock.mock_calls == expected_calls

0 commit comments

Comments
 (0)