Fix tests.

This commit is contained in:
Mariano Cano 2019-11-26 18:48:28 -08:00 committed by max furman
parent f26103d150
commit 2fe07cd79c
3 changed files with 19 additions and 0 deletions

View file

@ -12,6 +12,7 @@ import (
"fmt"
"net/http"
"net/http/httptest"
"os"
"strings"
"testing"
"time"
@ -50,6 +51,11 @@ func getCSR(priv interface{}) (*x509.CertificateRequest, error) {
return x509.ParseCertificateRequest(csrBytes)
}
func TestMain(m *testing.M) {
DisableIdentity = true
os.Exit(m.Run())
}
func TestCASign(t *testing.T) {
pub, priv, err := keys.GenerateDefaultKeyPair()
assert.FatalError(t, err)