Przeglądaj źródła

Fix linter error

Mariano Cano 4 lat temu
rodzic
commit
eebbd65dd5
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      ca/bootstrap_test.go

+ 4 - 1
ca/bootstrap_test.go

@@ -7,6 +7,7 @@ import (
 	"net"
 	"net"
 	"net/http"
 	"net/http"
 	"net/http/httptest"
 	"net/http/httptest"
+	"os"
 	"reflect"
 	"reflect"
 	"strings"
 	"strings"
 	"sync"
 	"sync"
@@ -370,7 +371,9 @@ func TestBootstrapClient(t *testing.T) {
 }
 }
 
 
 func TestBootstrapClientServerRotation(t *testing.T) {
 func TestBootstrapClientServerRotation(t *testing.T) {
-	t.Skipf("skip until we fix https://github.com/smallstep/certificates/issues/873")
+	if os.Getenv("CI") == "true" {
+		t.Skipf("skip until we fix https://github.com/smallstep/certificates/issues/873")
+	}
 	reset := setMinCertDuration(1 * time.Second)
 	reset := setMinCertDuration(1 * time.Second)
 	defer reset()
 	defer reset()