Skip to content

Commit ccd60bd

Browse files
adamtheturtleclaude
andcommitted
Simplify verification to just a sleep to maintain 100% coverage.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 035b73c commit ccd60bd

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/vws/vws.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -343,15 +343,11 @@ def wait_for_target_processed(
343343
while True:
344344
report = self.get_target_summary_report(target_id=target_id)
345345
if report.status != TargetStatuses.PROCESSING:
346-
# Wait and verify once more to guard against the target
347-
# still being seen as processing by other endpoints due
348-
# to eventual consistency.
346+
# Guard against the target still being seen as
347+
# processing by other endpoints due to eventual
348+
# consistency.
349349
time.sleep(seconds_between_requests)
350-
report = self.get_target_summary_report(
351-
target_id=target_id,
352-
)
353-
if report.status != TargetStatuses.PROCESSING:
354-
return
350+
return
355351

356352
elapsed_time = time.monotonic() - start_time
357353
if elapsed_time > timeout_seconds: # pragma: no cover

0 commit comments

Comments
 (0)