Skip to content

Commit b3c7f78

Browse files
committed
Update tests
1 parent 37fe507 commit b3c7f78

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.env.sample

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ DATABASE_URL=data.db
33
DATABASE_TYPE=sqlite
44
ADMIN_SECRET=admin
55
JWT_SECRET=random_string
6-
SENDER_EMAIL=username
7-
SENDER_PASSWORD=password
6+
SENDER_EMAIL=[email protected]
7+
SMTP_USERNAME=username
8+
SMTP_PASSWORD=password
89
SMTP_HOST=smtp.mailtrap.io
910
SMTP_PORT=2525
1011
JWT_TYPE=HS256

server/__test__/test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ package test
22

33
import (
44
"context"
5+
"fmt"
56
"net/http"
67
"net/http/httptest"
8+
"time"
79

810
"github.com/authorizerdev/authorizer/server/constants"
911
"github.com/authorizerdev/authorizer/server/db"
@@ -66,7 +68,7 @@ func createContext(s TestSetup) (*http.Request, context.Context) {
6668

6769
func testSetup() TestSetup {
6870
testData := TestData{
69-
Email: "authorizer_tester@yopmail.com",
71+
Email: fmt.Sprintf("%d_authorizer_tester@yopmail.com", time.Now().Unix()),
7072
Password: "test",
7173
}
7274

0 commit comments

Comments
 (0)