Commit de2100d
committed
test(e2e-metrics): add null check for metrics response
- Add null check before accessing response.Metrics.Count to prevent potential NullReferenceException
- Add explicit Assert.NotNull(response.Metrics) assertion before count validation
- Improve test robustness by ensuring metrics collection is not null before operations
- Prevents test failures due to unexpected null responses from CloudWatch API1 parent 6451680 commit de2100d
1 file changed
Lines changed: 2 additions & 1 deletion
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
0 commit comments