Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paganotoni authored and markbates committed Jan 3, 2018
1 parent ddcbf2f commit c1c166e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/auth0/auth0_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"os"
"testing"

"github.com/jarcoal/httpmock"
"github.com/markbates/goth"
"github.com/markbates/goth/providers/auth0"
"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -79,8 +80,7 @@ func Test_FetchUser(t *testing.T) {
"sub": "auth0|58454..."
}`

httpmock.RegisterResponder("GET", "https://"+os.Getenv("AUTH0_DOMAIN")+"/userinfo",
httpmock.NewStringResponder(200, sampleResp))
httpmock.RegisterResponder("GET", "https://"+os.Getenv("AUTH0_DOMAIN")+"/userinfo", httpmock.NewStringResponder(200, sampleResp))

p := provider()
session, err := p.BeginAuth("test_state")
Expand Down

0 comments on commit c1c166e

Please sign in to comment.