2019-10-09 18:42:05 +03:00
|
|
|
package autocert
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestAutocert(t *testing.T) {
|
|
|
|
l := New()
|
|
|
|
if _, ok := l.(*autocertProvider); !ok {
|
|
|
|
t.Error("New() didn't return an autocertProvider")
|
|
|
|
}
|
2019-10-11 18:47:05 +03:00
|
|
|
// TODO: Travis CI doesn't let us bind :443
|
|
|
|
// if _, err := l.NewListener(); err != nil {
|
|
|
|
// t.Error(err.Error())
|
|
|
|
// }
|
2019-10-09 18:42:05 +03:00
|
|
|
}
|