Skip to content

fix: make RestService tests config-aware#1380

Merged
MariusWirtz merged 3 commits intomasterfrom
fix/rest-service-tests-config-aware
Apr 8, 2026
Merged

fix: make RestService tests config-aware#1380
MariusWirtz merged 3 commits intomasterfrom
fix/rest-service-tests-config-aware

Conversation

@nicolasbisurgi
Copy link
Copy Markdown
Collaborator

Summary

  • Parameter assertion tests (test_default_remote_disconnect_parameters, test_default_async_polling_parameters) now read expected values from config.ini with fallback to code defaults, instead of hardcoding values
  • Wait time generator tests now explicitly set and restore polling attributes (initial_delay, max_delay, backoff_factor) to fixed values in each test, isolating generator logic from config overrides
  • Tests are now resilient to any future changes in CI config.ini polling/retry settings

Root cause

After adding async_polling_* and remote_disconnect_* overrides to the CI config.ini to mitigate RemoteDisconnect failures, the RestService tests broke because they asserted hardcoded default values that no longer matched the configured ones.

Fixes #1368, #1369, #1370, #1371, #1372, #1373, #1374, #1375, #1376, #1377, #1378, #1379

Test plan

  • Verify all 6 failing tests pass with CI config overrides
  • Verify tests still pass with default config (no overrides)

🤖 Generated with Claude Code

The wait_time_generator and parameter assertion tests were hardcoding
expected values (0.1s initial delay, 1.0s max, etc.) that break when
config.ini overrides those defaults. Now the generator tests explicitly
set and restore polling attributes, and the default-parameter tests
read expected values from config.ini.

Fixes #1368, #1369, #1370, #1371, #1372, #1373, #1374, #1375, #1376, #1377, #1378, #1379

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nicolasbisurgi nicolasbisurgi self-assigned this Apr 3, 2026
@nicolasbisurgi nicolasbisurgi added the release:patch Triggers patch version bump (e.g.: 1.4.9 → 1.4.10) label Apr 3, 2026
nicolasbisurgi and others added 2 commits April 3, 2026 09:44
The second test_delete_edges_use_ti_skip_invalid_edges_true (with use_ti=True)
was shadowing the first one (default path). Renamed to
test_delete_edges_use_ti_and_skip_invalid_edges_true.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nicolasbisurgi nicolasbisurgi added automation and removed release:patch Triggers patch version bump (e.g.: 1.4.9 → 1.4.10) labels Apr 3, 2026
@MariusWirtz MariusWirtz merged commit b563914 into master Apr 8, 2026
1 check passed
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.

🚨 Nightly Release Failed

2 participants