Skip to content

Commit 972b498

Browse files
UnwashedMemevalyria257
authored andcommitted
test: use smaller selfsigned certs for testing
When generating a self-signed cert for _unit-tests_ it doesn't need to have high security. Using a smaller length makes the tests run faster. The difference is ~0.1s vs ~2.0s to run one test that generates a cert.
1 parent 7579f83 commit 972b498

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/helpers/cert_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const (
3131
permission = 0o600
3232
serialNumber = 123123
3333
years, months, days = 5, 0, 0
34-
bits = 4096
34+
bits = 1024
3535
)
3636

3737
func GenerateSelfSignedCert(t testing.TB) (keyBytes, certBytes []byte) {

0 commit comments

Comments
 (0)