Hard-code testing target host
This commit is contained in:
parent
5907a46658
commit
c28d6e3675
1
Makefile
1
Makefile
@ -4,7 +4,6 @@ GOOS := plan9
|
|||||||
GOARCH := amd64
|
GOARCH := amd64
|
||||||
|
|
||||||
test:
|
test:
|
||||||
SDF_PROXY_ALLOWED_HOSTS=teapot-dummy-target.example.com \
|
|
||||||
go test -v
|
go test -v
|
||||||
|
|
||||||
build: test
|
build: test
|
||||||
|
@ -7,6 +7,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
allowedHosts = []string{"teapot-dummy-target.example.com"}
|
||||||
|
}
|
||||||
|
|
||||||
func TestHttpReverseProxy(t *testing.T) {
|
func TestHttpReverseProxy(t *testing.T) {
|
||||||
var header map[string][]string
|
var header map[string][]string
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user