Skip to content
Snippets Groups Projects
Commit 0e723c5b authored by Alex's avatar Alex
Browse files

watchdog - Patch environmental header test


Signed-off-by: default avatarAlex <alexellis2@gmail.com>
parent 6d436c57
No related branches found
No related tags found
No related merge requests found
......@@ -47,8 +47,8 @@ func TestHandler_HasCustomHeaderInFunction_WithCgi_Mode(t *testing.T) {
read, _ := ioutil.ReadAll(rr.Body)
val := string(read)
if strings.Index(val, "Http_Custom-Header") == -1 {
t.Errorf("'env' should printed: Http_Custom-Header, got: %s\n", val)
if strings.Index(val, "Http_Custom_Header") == -1 {
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)
val := string(read)
if strings.Index(val, "Http_Custom-Header") != -1 {
t.Errorf("'env' should not have printed: Http_Custom-Header, got: %s\n", val)
if strings.Index(val, "Http_Custom_Header") != -1 {
t.Errorf("'env' should not have printed: Http_Custom_Header, got: %s\n", val)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment