open-consul/command/agent/http_test.go

16 lines
286 B
Go
Raw Normal View History

2013-12-23 21:52:10 +00:00
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
}