Skip to content

[tests] replace fixed tokio::time::sleep workarounds with wait_for_table_ready helper #562

@fresh-borzoni

Description

@fresh-borzoni

Search before asking

  • I searched in the issues and found nothing similar.

Description

Several Rust integration tests use a fixed tokio::time::sleep(1-2s) after create_table / create_partitions to wait for bucket leadership (see list_offsets, test_poll_batches, partitioned_table_append_scan) - brittle on slow CI and adds dead time when the cluster is ready sooner. Add wait_for_table_ready(admin, table_path) (and partitione dvariant) to tests/integration/utils.rs that polls list_offsets /list_partition_offsets until success, mirroring the existing wait_for_cluster_ready_with_sasl shape, and replace the sleeps at all call sites.

Willingness to contribute

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions