Commit 17fc060
committed
Address review: gofmt the minter cert literal + test the wall-clock deadline
- gofmt: re-align the x509.Certificate{} literal. The prior edit de-aligned
NotBefore:/NotAfter: to one space; gofmt -l flagged minter.go (CI missed it
because go-fmt pre-commit only covers proxy-init/).
- test: add TestMinter_CacheDeadlineIsWallClock, asserting the cache freshness
deadline carries no monotonic reading (exp == exp.Round(0)) — directly
guarding the .Round(0) suspend fix, which the existing test did not exercise.
Clarify that TestMinter_ReMintsWallClockExpiredLeaf covers the NotAfter
backstop (a state normal operation cannot produce).
Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Hai Huang <huang195@gmail.com>1 parent afc9fc3 commit 17fc060
2 files changed
Lines changed: 27 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
0 commit comments