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