Commit 72baf4b
authored
Fix flaky protobuf debug format test when nanos is zero (#1958)
## Summary
- Protobuf3 text format omits fields with default (zero) values
- When `created_timestamp` lands on an exact second boundary, the
`nanos` field is absent
- The test pattern now makes the `nanos` line optional
## Test plan
- [ ] CI passes (specifically Java 25 integration tests)
---------
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>1 parent 2277116 commit 72baf4b
File tree
1 file changed
+9
-5
lines changed- integration-tests/it-exporter/it-exporter-test/src/test/java/io/prometheus/metrics/it/exporter/test
1 file changed
+9
-5
lines changedLines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
| |||
0 commit comments