Skip to content

Commit 5ec4bf7

Browse files
committed
cleanup
Signed-off-by: bluna301 <[email protected]>
1 parent c242bdf commit 5ec4bf7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/apps/cchmc_ped_abd_ct_seg_app/mongodb_writer_operator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,11 @@ def test():
171171

172172
# connect to MongoDB instance (localhost as we are testing locally)
173173
try:
174-
# username, password, and port are MONAI Deploy Express defaults
175174
client = MongoClient(
176175
f"mongodb://{mongodb_username}:{mongodb_password}@localhost:{mongodb_port}/?authSource=admin",
177176
serverSelectionTimeoutMS=10000, # 10s timeout for testing connection; 20s by default
178177
)
179-
if self.client is None:
178+
if client is None:
180179
raise RuntimeError("MongoClient was not created successfully")
181180
ping_response = client.admin.command("ping")
182181
print(f"Successfully connected to MongoDB at: {client.address}. Ping response: {ping_response}")

0 commit comments

Comments
 (0)