Truncate to seconds the startTime to simplify tests.
This commit is contained in:
parent
1a9e8bad74
commit
2fb77b8a4d
1 changed files with 2 additions and 1 deletions
|
@ -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
|
// Set flag indicating that initialization has been completed, and should
|
||||||
// not be repeated.
|
// not be repeated.
|
||||||
a.initOnce = true
|
a.initOnce = true
|
||||||
|
|
Loading…
Reference in a new issue