Commit 941987f
fix(flaky test): use proto.Equal for gRPC status comparison in TestUpdateFeature (#2774)
* fix: use proto.Equal for gRPC status comparison in TestUpdateFeature
The status error comparison used assert.Equal on serialized proto bytes,
which is non-deterministic when ErrorInfo.Metadata has multiple map
entries (messageKey + field). Switch to proto.Equal for semantic
comparison.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: unpack Any details before proto.Equal comparison
proto.Equal on Status.Proto() compares Any.value raw bytes, which still
suffers from non-deterministic map serialization in ErrorInfo.Metadata.
Instead, compare code/message individually and use Details() to unpack
each Any into its concrete proto.Message before comparing with
proto.Equal.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0da723d commit 941987f
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
3206 | 3207 | | |
3207 | 3208 | | |
3208 | 3209 | | |
3209 | | - | |
| 3210 | + | |
| 3211 | + | |
| 3212 | + | |
| 3213 | + | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
| 3219 | + | |
| 3220 | + | |
| 3221 | + | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
3210 | 3226 | | |
3211 | 3227 | | |
3212 | 3228 | | |
0 commit comments