github.com/btccom/go-micro/v2@v2.9.3/api/server/acme/autocert/autocert_test.go (about)

     1  package autocert
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func TestAutocert(t *testing.T) {
     8  	l := NewProvider()
     9  	if _, ok := l.(*autocertProvider); !ok {
    10  		t.Error("NewProvider() didn't return an autocertProvider")
    11  	}
    12  	// TODO: Travis CI doesn't let us bind :443
    13  	// if _, err := l.NewListener(); err != nil {
    14  	// 	t.Error(err.Error())
    15  	// }
    16  }