MSP-8974 fix tests
This commit is contained in:
1 parent
9aeb791c53
commit
82a5de3782
50 files changed
+365
-2965
No files matched your search
@@ -27,7 +27,7 @@ func TestInactiveWorker(t *testing.T) {
|
||||
userId := InsertUser(db, entity.User{Email: "a@test", LastActiveAt: time.Now().UTC().Add(-5 * 24 * time.Hour)})
|
||||
InsertUser(db, entity.User{Email: "b@test", LastActiveAt: time.Now().UTC()})
|
||||
|
||||
config, err := assembly.NewLocator(test.Logger(), nil, db).
|
||||
config, err := assembly.NewLocator(test.Logger(), nil, nil, db).
|
||||
Config(t.Context(), conf.Remote{
|
||||
BlockInactiveWorker: conf.BlockInactiveWorker{
|
||||
DaysThreshold: 1,
|
||||
@@ -49,7 +49,7 @@ func TestInactiveWorker(t *testing.T) {
|
||||
require.True(user.Blocked)
|
||||
|
||||
list, err := repository.NewAudit(db).AllByRequest(t.Context(), domain.AuditPageRequest{
|
||||
LimitOffestParams: domain.LimitOffestParams{
|
||||
LimitOffsetParams: domain.LimitOffsetParams{
|
||||
Limit: 10,
|
||||
Offset: 0,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user