Merge branch 'main' into feat/dashboard

This commit is contained in:
Lakhan Samani
2022-01-08 18:46:44 +05:30
6 changed files with 69 additions and 102 deletions

View File

@@ -2,8 +2,10 @@ package test
import (
"context"
"fmt"
"net/http"
"net/http/httptest"
"time"
"github.com/authorizerdev/authorizer/server/constants"
"github.com/authorizerdev/authorizer/server/db"
@@ -66,7 +68,7 @@ func createContext(s TestSetup) (*http.Request, context.Context) {
func testSetup() TestSetup {
testData := TestData{
Email: "authorizer_tester@yopmail.com",
Email: fmt.Sprintf("%d_authorizer_tester@yopmail.com", time.Now().Unix()),
Password: "test",
}