File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
iotdb-client/client-py/tests/integration Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,12 @@ def session_test(use_session_pool=False):
6161 }
6262 )
6363 else :
64+ host = db .get_container_host_ip ()
65+ port = db .get_exposed_port (6667 )
6466 session = TableSession (
6567 config = {
6668 "node_urls" : [
67- f"{ db . get_container_host_ip () } :{ db . get_exposed_port ( 6667 ) } " ,
69+ f"{ host } :{ port } " ,
6870 ]
6971 }
7072 )
Original file line number Diff line number Diff line change 3030def test_insert_use_tablet ():
3131 with IoTDBContainer ("iotdb:dev" ) as db :
3232 db : IoTDBContainer
33+ host = db .get_container_host_ip ()
34+ port = db .get_exposed_port (6667 )
3335 session = TableSession (
3436 config = {
3537 "node_urls" : [
36- f"{ db . get_container_host_ip () } :{ db . get_exposed_port ( 6667 ) } " ,
38+ f"{ host } :{ port } " ,
3739 ]
3840 }
3941 )
@@ -623,10 +625,12 @@ def test_insert_use_tablet():
623625def test_insert_relational_tablet_use_numpy_tablet ():
624626 with IoTDBContainer ("iotdb:dev" ) as db :
625627 db : IoTDBContainer
628+ host = db .get_container_host_ip ()
629+ port = db .get_exposed_port (6667 )
626630 session = TableSession (
627631 config = {
628632 "node_urls" : [
629- f"{ db . get_container_host_ip () } :{ db . get_exposed_port ( 6667 ) } " ,
633+ f"{ host } :{ port } " ,
630634 ]
631635 }
632636 )
@@ -1108,10 +1112,12 @@ def test_insert_relational_tablet_use_numpy_tablet():
11081112def test_insert_relational_tablet_auto_create ():
11091113 with IoTDBContainer ("iotdb:dev" ) as db :
11101114 db : IoTDBContainer
1115+ host = db .get_container_host_ip ()
1116+ port = db .get_exposed_port (6667 )
11111117 session = TableSession (
11121118 config = {
11131119 "node_urls" : [
1114- f"{ db . get_container_host_ip () } :{ db . get_exposed_port ( 6667 ) } " ,
1120+ f"{ host } :{ port } " ,
11151121 ]
11161122 }
11171123 )
You can’t perform that action at this time.
0 commit comments