Skip to content

network tests#145

Merged
chizberg merged 1 commit into
mainfrom
network-tests
Jul 9, 2026
Merged

network tests#145
chizberg merged 1 commit into
mainfrom
network-tests

Conversation

@chizberg

@chizberg chizberg commented Jul 8, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds new network-focused tests to the Rewind test suite to lock down URL request construction details and Remote retry/cancellation behavior.

Changes:

  • Adds characterization tests verifying Network.Request.byBounds encodes GeoJSON Polygon coordinates with the required extra ring nesting.
  • Adds tests verifying Network.Request.image strips unexpected query parameters from image paths when building CDN URLs.
  • Adds behavioral async tests for Remote.exponentialBackoff, including retry-until-success and cancellation aborting pending retries.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
RewindTests/RequestBuildingTests.swift Tests URL building for byBounds params JSON structure and image URL query stripping.
RewindTests/RemoteBackoffTests.swift Tests Remote.exponentialBackoff retry and cancellation behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +48 to +50
while await counter.n < 1 {
await Task.yield()
}
@chizberg
chizberg merged commit 8ad940b into main Jul 9, 2026
4 checks passed
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.

2 participants