Skip to content

Replace Thread.sleep polling with Awaitility in tests#1852

Merged
rzo1 merged 2 commits intomainfrom
replace-thread-sleep-with-awaitility
Mar 30, 2026
Merged

Replace Thread.sleep polling with Awaitility in tests#1852
rzo1 merged 2 commits intomainfrom
replace-thread-sleep-with-awaitility

Conversation

@jnioche
Copy link
Copy Markdown
Contributor

@jnioche jnioche commented Mar 30, 2026

Summary

  • Replaces manual while/Thread.sleep polling loops with Awaitility's await().atMost().until() across 9 test files in core, solr, opensearch, urlfrontier, and playwright modules
  • Centralizes the awaitility version (4.3.0) in the parent POM's dependencyManagement, removing duplicated version declarations from child modules
  • Adds the awaitility test dependency to solr, opensearch, and urlfrontier modules which were missing it

Test plan

  • Verify mvn install -DskipTests succeeds (confirmed locally)
  • Run affected test suites: core, solr, opensearch, urlfrontier, playwright
  • Confirm no regressions in CI

🤖 Generated with Claude Code

Replaces manual while/Thread.sleep polling patterns with Awaitility's
await().atMost().until() across 9 test files in core, solr, opensearch,
urlfrontier, and playwright modules. Centralizes the awaitility version
in the parent POM's dependencyManagement and adds the dependency to
modules that were missing it (solr, opensearch, urlfrontier).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jnioche jnioche requested a review from rzo1 March 30, 2026 09:54
Signed-off-by: Julien Nioche <julien@digitalpebble.com>
@jnioche jnioche added this to the 3.5.2 milestone Mar 30, 2026
@rzo1 rzo1 merged commit e3062a1 into main Mar 30, 2026
2 checks passed
@rzo1 rzo1 deleted the replace-thread-sleep-with-awaitility branch March 30, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants