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 metadata check in interop tests #39

Merged
merged 1 commit into from
Feb 25, 2025
Merged

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Feb 25, 2025

Motivation:

The custom-metadata interop tests checks the underlying element is a decoded .binary element. This is isn't guaranteed for binary metadata values as the transport may not decode them. The test should instead check that the binary values for the key are as expected.

Modifications:

  • Use subscript(binaryValues:) and subscript(stringValues:)

Result:

More correct test

Motivation:

The custom-metadata interop tests checks the underlying element is a
decoded `.binary` element. This is isn't guaranteed for binary metadata
values as the transport may not decode them. The test should instead
check that the _binary values_ for the key are as expected.

Modifications:

- Use `subscript(binaryValues:)` and `subscript(stringValues:)`

Result:

More correct test
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Feb 25, 2025
@glbrntt glbrntt requested a review from gjcairo February 25, 2025 10:46
@glbrntt glbrntt merged commit 2e5a5b8 into grpc:main Feb 25, 2025
22 checks passed
@glbrntt glbrntt deleted the metadata-check branch February 25, 2025 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants