Skip to content

Commit

Permalink
add logrus, replace print with log statements, fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
irfan committed Feb 7, 2019
1 parent e6a1842 commit 1452d84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/proxy/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import (
"sync/atomic"
"testing"

"github.com/gojektech/iap_auth/pkg/logger"
"github.com/gojektech/iap_auth/pkg/proxy"
"github.com/stretchr/testify/assert"
)

func TestShouldReverseProxyToGivenUrlWithAuthorizationHeaders(t *testing.T) {
logger.SetupLogger("debug")
backend := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte(r.Header.Get("Authorization")))
w.WriteHeader(200)
Expand Down

0 comments on commit 1452d84

Please sign in to comment.