From 2fb77b8a4d3c3c986746b5246546cf42c1955148 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Mon, 11 Mar 2019 18:14:20 -0700 Subject: [PATCH] Truncate to seconds the startTime to simplify tests. --- authority/authority.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/authority/authority.go b/authority/authority.go index 49351500..950f6e4a 100644 --- a/authority/authority.go +++ b/authority/authority.go @@ -103,7 +103,8 @@ func (a *Authority) init() error { } } - a.startTime = time.Now() + // JWT numeric dates are seconds. + a.startTime = time.Now().Truncate(time.Second) // Set flag indicating that initialization has been completed, and should // not be repeated. a.initOnce = true