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

Assert that infer.Wraped providers can access the infer config #229

Merged

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Apr 24, 2024

This just adds a test case.

@iwahbe iwahbe requested a review from a team April 24, 2024 23:34
@iwahbe iwahbe self-assigned this Apr 24, 2024
@iwahbe iwahbe enabled auto-merge (squash) April 24, 2024 23:34
@@ -58,14 +60,25 @@ func TestInferConfigWrap(t *testing.T) {
baseConfigureWasCalled = true
return nil
},
Check: func(ctx context.Context, _ p.CheckRequest) (p.CheckResponse, error) {
infer.GetConfig[*testConfig](ctx) // Will panic if config is missing
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be clearer for the next person to have an assertion failure instead of a panic.

Copy link
Member Author

Choose a reason for hiding this comment

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

Follow up PR incoming.

@iwahbe iwahbe merged commit 5dd8f34 into main Apr 25, 2024
6 checks passed
@iwahbe iwahbe deleted the iwahbe/assert-that-rpc-providers-can-access-infer-config branch April 25, 2024 05:46
iwahbe added a commit that referenced this pull request Apr 25, 2024
iwahbe added a commit that referenced this pull request Apr 25, 2024
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