Skip to content

Commit daf64fc

Browse files
committed
revert test
1 parent 8b7daaa commit daf64fc

File tree

1 file changed

+3
-4
lines changed
  • examples/server/tests/features/steps

1 file changed

+3
-4
lines changed

examples/server/tests/features/steps/steps.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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()}")

0 commit comments

Comments
 (0)