File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
examples/apps/cchmc_ped_abd_ct_seg_app Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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 } " )
You can’t perform that action at this time.
0 commit comments