Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ftltest.Call always allows direct initial verb #3073

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

worstell
Copy link
Contributor

when using ftltest.Call, you don't need to mock the verb directly invoked. only downstream verbs must be mocked (or overridden by setting WithCallsAllowedWithinModule globally)

https://sq-tbd.slack.com/archives/C04PEQERFM0/p1727995042643089

fixes #2984

@worstell worstell requested a review from matt2e October 10, 2024 20:28
@worstell worstell requested review from a team and alecthomas as code owners October 10, 2024 20:28
@worstell worstell requested a review from a team October 10, 2024 20:28
This was referenced Oct 10, 2024
@worstell worstell force-pushed the worstell/20241010-ftltest-allow-first-module-call branch 2 times, most recently from 9b38426 to d370dee Compare October 10, 2024 21:30
worstell and others added 2 commits October 10, 2024 14:35
when using ftltest.Call, you don't need to mock the verb directly invoked. only downstream
verbs must be mocked (or overridden by setting WithCallsAllowedWithinModule globally)

fixes #2984
@worstell worstell force-pushed the worstell/20241010-ftltest-allow-first-module-call branch from b0129a4 to 53ff74c Compare October 10, 2024 21:35
Copy link
Collaborator

@matt2e matt2e left a comment

Choose a reason for hiding this comment

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

Awesome

@worstell worstell merged commit e1adfce into main Oct 11, 2024
95 checks passed
@worstell worstell deleted the worstell/20241010-ftltest-allow-first-module-call branch October 11, 2024 02:17
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.

make WithCallsAllowedWithinModule() the default and remove
2 participants