forked from ooni/probe-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(netxlite): restructure dialer tests (ooni#486)
While there, add one more test checking for whether the internal CA bundle we use can actually be loaded. Part of ooni/probe#1591
- Loading branch information
1 parent
79da38d
commit 8597d88
Showing
6 changed files
with
297 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package netxlite | ||
|
||
import ( | ||
"crypto/x509" | ||
"testing" | ||
) | ||
|
||
func TestPEMCerts(t *testing.T) { | ||
pool := x509.NewCertPool() | ||
if !pool.AppendCertsFromPEM([]byte(pemcerts)) { | ||
t.Fatal("cannot load pemcerts") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.