Browse Source

Fixed unit test

dependabot/npm_and_yarn/web/prismjs-1.21.0
Max Schmitt 8 years ago
parent
commit
58b8266e10
  1. 3
      handlers/auth_test.go

3
handlers/auth_test.go

@ -15,6 +15,7 @@ import (
"github.com/maxibanki/golang-url-shortener/config" "github.com/maxibanki/golang-url-shortener/config"
"github.com/maxibanki/golang-url-shortener/store" "github.com/maxibanki/golang-url-shortener/store"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/sirupsen/logrus"
"golang.org/x/oauth2/google" "golang.org/x/oauth2/google"
) )
@ -51,7 +52,7 @@ func TestCreateBackend(t *testing.T) {
ListenAddr: ":8080", ListenAddr: ":8080",
Secret: secret, Secret: secret,
BaseURL: "http://127.0.0.1", BaseURL: "http://127.0.0.1",
}, *store) }, *store, logrus.New())
if err != nil { if err != nil {
t.Fatalf("could not create handler: %v", err) t.Fatalf("could not create handler: %v", err)
} }

Loading…
Cancel
Save