summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-02-16 15:53:48 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2023-02-16 15:53:48 +0100
commit0566c505b1462e47a9dc44d7b26534b41aca1c4f (patch)
tree76dd531de3c534905e7785a32e6b56f98c460c03
parent807140ce43584e9612f7b5890b13d751247f8e6e (diff)
Test: Rename TestServer to Server
-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 {