github.com/volts-dev/volts@v0.0.0-20240120094013-5e9c65924106/internal/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  }