summaryrefslogtreecommitdiff
path: root/internal/test/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/test/server.go')
-rw-r--r--internal/test/server.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/test/server.go b/internal/test/server.go
index 6426db0..e020d69 100644
--- a/internal/test/server.go
+++ b/internal/test/server.go
@@ -10,18 +10,18 @@ import (
"github.com/go-errors/errors"
)
-type TestServer struct {
+type Server struct {
*httptest.Server
}
-func NewServer(handler http.Handler) *TestServer {
+func NewServer(handler http.Handler) *Server {
s := httptest.NewTLSServer(handler)
- return &TestServer{s}
+ return &Server{s}
}
// Client returns a test client that trusts the HTTPS certificates
-func (srv *TestServer) Client() (*httpw.Client, error) {
+func (srv *Server) Client() (*httpw.Client, error) {
// Get the certs from the test server
certs := x509.NewCertPool()
for _, c := range srv.TLS.Certificates {