Remove trace message on client init

This commit is contained in:
Denis Makogon
2017-07-06 18:25:25 +03:00
parent 009c478c07
commit fa20db0df4
2 changed files with 2 additions and 3 deletions

View File

@@ -21,7 +21,6 @@ func Host() string {
if err != nil {
log.Fatalln("Couldn't parse API URL:", err)
}
log.Println("trace: Host:", u.Host)
return u.Host
}

View File

@@ -4,7 +4,7 @@ import (
"net/http"
"os"
"testing"
"gitlab-odx.oracle.com/odx/functions/fn/utils"
"gitlab-odx.oracle.com/odx/functions/fn/client"
)
func TestEnvAsHeader(t *testing.T) {
@@ -18,7 +18,7 @@ func TestEnvAsHeader(t *testing.T) {
}
for _, selectedEnv := range cases {
req, _ := http.NewRequest("GET", "http://www.example.com", nil)
utils.EnvAsHeader(req, selectedEnv)
client.EnvAsHeader(req, selectedEnv)
if found := req.Header.Get("k"); found != expectedValue {
t.Errorf("not found expected header: %v", found)
}