File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
examples/server/tests/features/steps Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1208,12 +1208,11 @@ async def wait_for_slots_status(context,
12081208 while True :
12091209 async with await session .get (f'{ base_url } /slots' , params = params ) as slots_response :
12101210 status_code = slots_response .status
1211- if status_code == 503 and status_code == expected_http_status_code :
1212- return
12131211 slots = await slots_response .json ()
12141212 if context .debug :
12151213 print (f"slots responses { slots } \n " )
1216-
1214+ if status_code == 503 and status_code == expected_http_status_code :
1215+ return
12171216 if status_code == 200 and status_code == expected_http_status_code :
12181217 n_slots_idle = sum (1 if slot ["state" ] == 0 else 0 for slot in slots )
12191218 n_slots_processing = sum (1 if slot ["state" ] != 0 else 0 for slot in slots )
@@ -1373,4 +1372,4 @@ def server_log(in_stream, out_stream):
13731372 thread_stderr = threading .Thread (target = server_log , args = (context .server_process .stderr , sys .stderr ))
13741373 thread_stderr .start ()
13751374
1376- print (f"server pid={ context .server_process .pid } , behave pid={ os .getpid ()} " )
1375+ print (f"server pid={ context .server_process .pid } , behave pid={ os .getpid ()} " )
You can’t perform that action at this time.
0 commit comments