Commit 397acdc
authored
test(observability-metrics-aws-cloudwatch): fix time-rotted default-step test (#279)
* test(observability-metrics-aws-cloudwatch): fix time-rotted default-step test
TestGetResourceMetricsAppliesDefaultStep hardcoded a fixed start time
(2026-05-04) that flows into normalizeStandardMetricPeriod, which derives
the minimum period from time.Since(start) against the real wall clock.
Once the wall clock passed the 63-day retention threshold, the minimum
period was bumped from 300s to 3600s, breaking the "default step" assertion.
Use a time.Now()-relative start time so the query window stays recent,
matching the sibling tests (NormalizesSubMinuteStep, etc.) and keeping the
test focused on the behavior it asserts.
Signed-off-by: Akila-I <akila.99g@gmail.com>
* chore: bump version to 0.1.1 for GCP Cloud Logging module
Signed-off-by: Akila-I <akila.99g@gmail.com>
---------
Signed-off-by: Akila-I <akila.99g@gmail.com>1 parent aee086e commit 397acdc
2 files changed
Lines changed: 2 additions & 2 deletions
File tree
- observability-logs-gcp-cloudlogging
- observability-metrics-aws-cloudwatch/internal/cloudwatchmetrics
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments