Skip to content

Commit 2192103

Browse files
committed
test: add get with ip and port
1 parent 8203cb7 commit 2192103

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

test/test_http_get_collect.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ def test_http_get_returns_id(sess):
1414
assert request_id == 1
1515

1616

17+
def test_http_get_works_with_ip(sess):
18+
"""net.http_get returns a bigint id when using an IP with port"""
19+
20+
(request_id,) = sess.execute(text(
21+
"""
22+
select net.http_get('http://127.0.0.1:8080');
23+
"""
24+
)).fetchone()
25+
26+
assert request_id == 1
27+
28+
1729
def test_http_get_collect_sync_success(sess):
1830
"""Collect a response, waiting if it has not completed yet"""
1931

0 commit comments

Comments
 (0)