Skip to content

fix(tests): update preemptive_generation mock to use dict#5468

Merged
longcw merged 1 commit intomainfrom
longc/fix-preemptive-generation-mock
Apr 17, 2026
Merged

fix(tests): update preemptive_generation mock to use dict#5468
longcw merged 1 commit intomainfrom
longc/fix-preemptive-generation-mock

Conversation

@longcw
Copy link
Copy Markdown
Contributor

@longcw longcw commented Apr 16, 2026

Summary

Follow-up to #5428 (comment)

The mock in test_session_host used a plain bool for
preemptive_generation, but remote_session now calls dict() on it
which crashes with TypeError. Use a PreemptiveGenerationOptions
dict instead, and add test_session_host to unit test suite.
@chenghao-mou chenghao-mou requested a review from a team April 16, 2026 07:38
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@longcw longcw merged commit b4f7213 into main Apr 17, 2026
26 checks passed
@longcw longcw deleted the longc/fix-preemptive-generation-mock branch April 17, 2026 06:21
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