-
Notifications
You must be signed in to change notification settings - Fork 24
Fix error message #1603
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
base: main
Are you sure you want to change the base?
Fix error message #1603
Conversation
👋 cedric-cordenier, thanks for creating this pull request! To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team. Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks! |
✅ API Diff Results - No breaking changes |
}, | ||
}, | ||
}) | ||
require.Equal(t, "Bar", result.GetValue().GetStringValue(), result.GetError()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe missing some parent test context, but where does the value "Bar" come from if this is expected to error?
require.Equal(t, "Bar", result.GetValue().GetStringValue()) | ||
}) | ||
|
||
t.Run("returns an error when there are invalid UTF-8 bytes", func(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add one that shows the SDK returns the right error from the host?
require.Equal(t, "Bar", result.GetValue().GetStringValue()) | ||
}) | ||
|
||
t.Run("returns an error when there are invalid UTF-8 bytes", func(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests fail because you didn't implement the STD test for common. This version of it verifies the test can pass. Once you have that, I would implement it in Go's SDK too to ensure assumptions you made are correct about messaging (eg the bar question that Street asked below).
It sucks, but it keeps us from having a circular dependency. I think of Go as the reference implementation, even though it's not with the host, it's good to ensure it passes.
Requires
Supports