From 5015387857f502a417eeed74a1390b08ab8a854c Mon Sep 17 00:00:00 2001 From: Pavel Date: Thu, 11 Jan 2024 15:11:18 +0300 Subject: [PATCH] some refactor --- tests/repository_test/repository_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/repository_test/repository_test.go b/tests/repository_test/repository_test.go index d12754c..6b69033 100644 --- a/tests/repository_test/repository_test.go +++ b/tests/repository_test/repository_test.go @@ -17,6 +17,8 @@ import ( "github.com/stretchr/testify/assert" ) +// todo add another tests + const mongoURI = "mongodb://test:test@127.0.0.1:27020/?authMechanism=SCRAM-SHA-256&authSource=admin&directConnection=true" func TestFindByEmail(t *testing.T) { @@ -78,7 +80,7 @@ func TestStoreRecoveryRecord(t *testing.T) { email := faker.Email() key := "test_recovery_key" - id, err := userRepo.StoreRecoveryRecord(ctx, userID, email, key, "def.url") + id, err := userRepo.StoreRecoveryRecord(ctx, models.StoreRecDeps{UserID: userID, Email: email, Key: key, Url: "def.url"}) assert.NoError(t, err) fmt.Println(id)