Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(cmd): record ngx.time() before generating a cert (#12306)
Several of these tests contained the following assertion after generating a certificate with the `kong hybrid gen_cert` command: ```lua assert(crt:get_not_before() >= ngx.time()) ``` This produces failures every now and again when the clock has advanced _just_ enough for ngx.time() to return `crt:get_not_before() + 1`. To fix this, we record the time _before_ generating the cert and validate against the stored timestamp.
- Loading branch information