You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/command/agent/http_test.go

16 lines
286 B

package agent
import (
"testing"
)
func makeHTTPServer(t *testing.T) (string, *HTTPServer) {
conf := nextConfig()
dir, agent := makeAgent(t, conf)
server, err := NewServer(agent, agent.logOutput, conf.HTTPAddr)
if err != nil {
t.Fatalf("err: %v", err)
}
return dir, server
}