File: fix-flaky-test.patch

package info (click to toggle)
golang-github-smallstep-certificates 0.28.4-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,684 kB
  • sloc: sh: 367; makefile: 129
file content (21 lines) | stat: -rw-r--r-- 711 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From 683f2dfff3d27a9bcd96c9bf6830a4cd2057b428 Mon Sep 17 00:00:00 2001
From: Mariano Cano <mariano.cano@gmail.com>
Date: Wed, 24 Jul 2024 12:24:03 -0700
Subject: [PATCH] Fix unit test
Origin: https://github.com/smallstep/certificates/commit/683f2dff

---
 ca/ca_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/ca/ca_test.go
+++ b/ca/ca_test.go
@@ -611,7 +611,7 @@
 			cert, err := x509util.NewCertificate(cr)
 			assert.FatalError(t, err)
 			crt := cert.GetCertificate()
-			crt.NotBefore = time.Now()
+			crt.NotBefore = now
 			crt.NotAfter = leafExpiry
 			crt, err = x509util.CreateCertificate(crt, intermediateCert, pub, intermediateKey.(crypto.Signer))
 			assert.FatalError(t, err)