watchdog - Patch environmental header test

Signed-off-by: Alex <alexellis2@gmail.com>
This commit is contained in:
Alex
2017-08-23 21:13:38 +01:00
parent 6d436c576c
commit 0e723c5b97

View File

@ -47,8 +47,8 @@ func TestHandler_HasCustomHeaderInFunction_WithCgi_Mode(t *testing.T) {
read, _ := ioutil.ReadAll(rr.Body) read, _ := ioutil.ReadAll(rr.Body)
val := string(read) val := string(read)
if strings.Index(val, "Http_Custom-Header") == -1 { if strings.Index(val, "Http_Custom_Header") == -1 {
t.Errorf("'env' should printed: Http_Custom-Header, got: %s\n", val) t.Errorf("'env' should printed: Http_Custom_Header, got: %s\n", val)
} }
@ -83,8 +83,8 @@ func TestHandler_DoesntHaveCustomHeaderInFunction_WithoutCgi_Mode(t *testing.T)
read, _ := ioutil.ReadAll(rr.Body) read, _ := ioutil.ReadAll(rr.Body)
val := string(read) val := string(read)
if strings.Index(val, "Http_Custom-Header") != -1 { if strings.Index(val, "Http_Custom_Header") != -1 {
t.Errorf("'env' should not have printed: Http_Custom-Header, got: %s\n", val) t.Errorf("'env' should not have printed: Http_Custom_Header, got: %s\n", val)
} }