Skip to content

Commit

Permalink
Address comment
Browse files Browse the repository at this point in the history
Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
  • Loading branch information
haydentherapper committed May 20, 2022
1 parent ac6da4a commit 181f7e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ca/ephemeralca/ephemeral_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestNewEphemeralCA(t *testing.T) {
if ca.RootCA == nil {
t.Fatalf("ca not set up")
}
if ca.RootCA.NotAfter.Sub(ca.RootCA.NotBefore) < time.Hour*87660 {
if ca.RootCA.NotAfter.Sub(ca.RootCA.NotBefore) < time.Hour*24*365*10 {
t.Fatalf("expected CA to have 10 year lifetime, got %v", ca.RootCA.NotAfter.Sub(ca.RootCA.NotBefore))
}
if !ca.RootCA.IsCA {
Expand Down

0 comments on commit 181f7e7

Please sign in to comment.