Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feat/mock transport duration#3715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
BrunoMmS wants to merge8 commits intoencode:master
base:master
Choose a base branch
Loading
fromBrunoMmS:feat/mock-transport-duration

Conversation

@BrunoMmS
Copy link

Summary

This PR adds native support for simulating request latency in MockTransport by introducing an optional delay parameter.
When provided, the transport sets response.elapsed according to the delay value, unless the handler explicitly defines its own elapsed time.

This resolves the inconvenience described in issue#3712, where users needed to manually patch response.elapsed inside handlers to test timeout- or latency-sensitive logic.

Checklist

  • I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@BrunoMmS

[8]ページ先頭

©2009-2025 Movatter.jp