Skip to content

test(clob): extend order visibility polling#83

Merged
cesarenaldi merged 1 commit into
mainfrom
fix/clob-order-visibility-polling
Jun 9, 2026
Merged

test(clob): extend order visibility polling#83
cesarenaldi merged 1 commit into
mainfrom
fix/clob-order-visibility-polling

Conversation

@cesarenaldi

@cesarenaldi cesarenaldi commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • extend metered CLOB order visibility polling from ~2s to ~8s
  • keeps the existing open-orders read-path assertion while allowing for transient CLOB read latency

Verification

  • POLYMARKET_RUN_METERED_TESTS=1 uv run pytest tests/integration/test_clob_orders.py -q
  • uv run ruff check tests/integration/test_clob_orders.py
  • uv run pyright tests/integration/test_clob_orders.py

Note

Low Risk
Test-only default timing change with no production or API behavior impact.

Overview
Relaxes open-order visibility polling in metered CLOB integration tests by changing _wait_for_order_visible defaults from 8 × 0.25s (~2s) to 16 × 0.5s (~8s).

The helper still polls list_open_orders until the placed order appears; only the timeout window grows so flaky failures from transient CLOB read latency are less likely. Not-visible and empty open orders helpers are unchanged.

Reviewed by Cursor Bugbot for commit 60548d5. Bugbot is set up for automated code reviews on this repo. Configure here.

@cesarenaldi cesarenaldi merged commit 856957d into main Jun 9, 2026
7 checks passed
@cesarenaldi cesarenaldi deleted the fix/clob-order-visibility-polling branch June 9, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant