Update tests

This commit is contained in:
Lakhan Samani
2022-01-08 18:16:26 +05:30
parent 37fe5071c5
commit b3c7f783ed
2 changed files with 6 additions and 3 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",
}