Skip to content

Commit 7441a66

Browse files
committed
fix IT
1 parent 32d0f4b commit 7441a66

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

iotdb-client/client-py/tests/integration/test_relational_session.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
)

iotdb-client/client-py/tests/integration/test_tablemodel_insert.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@
3030
def 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():
623625
def 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():
11081112
def 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
)

0 commit comments

Comments
 (0)