refactor(netxlite): restructure dialer tests (#486)
While there, add one more test checking for whether the internal CA bundle we use can actually be loaded. Part of https://github.com/ooni/probe/issues/1591
This commit is contained in:
parent
f054ec3201
commit
6d39118b26
6 changed files with 297 additions and 239 deletions
|
|
@ -73,7 +73,7 @@ func TLSCipherSuiteString(value uint16) string {
|
|||
func NewDefaultCertPool() *x509.CertPool {
|
||||
pool := x509.NewCertPool()
|
||||
// Assumption: AppendCertsFromPEM cannot fail because we
|
||||
// run this function already in the generate.go file
|
||||
// have a test in certify_test.go that guarantees that
|
||||
pool.AppendCertsFromPEM([]byte(pemcerts))
|
||||
return pool
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue