коммит произвёл
GitHub
родитель
f290745496
Коммит
c3ed07e679
@@ -145,7 +145,7 @@ func getMockStore(t *testing.T) *mocks.Store {
|
||||
|
||||
fakeUser := []*model.User{{
|
||||
Id: "123",
|
||||
AuthData: model.NewString("authData"),
|
||||
AuthData: model.NewPointer("authData"),
|
||||
AuthService: "authService",
|
||||
}}
|
||||
mockUserStore := mocks.UserStore{}
|
||||
@@ -164,7 +164,7 @@ func getMockStore(t *testing.T) *mocks.Store {
|
||||
fakeUser[0],
|
||||
{
|
||||
Id: "456",
|
||||
AuthData: model.NewString("authData"),
|
||||
AuthData: model.NewPointer("authData"),
|
||||
AuthService: "authService",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ func TestUserStoreCache(t *testing.T) {
|
||||
fakeUserIds := []string{"123"}
|
||||
fakeUser := []*model.User{{
|
||||
Id: "123",
|
||||
AuthData: model.NewString("authData"),
|
||||
AuthData: model.NewPointer("authData"),
|
||||
AuthService: "authService",
|
||||
}}
|
||||
|
||||
@@ -231,7 +231,7 @@ func TestUserStoreGetCache(t *testing.T) {
|
||||
fakeUserId := "123"
|
||||
fakeUser := &model.User{
|
||||
Id: "123",
|
||||
AuthData: model.NewString("authData"),
|
||||
AuthData: model.NewPointer("authData"),
|
||||
AuthService: "authService",
|
||||
}
|
||||
t.Run("first call not cached, second cached and returning same data", func(t *testing.T) {
|
||||
@@ -301,12 +301,12 @@ func TestUserStoreGetCache(t *testing.T) {
|
||||
func TestUserStoreGetManyCache(t *testing.T) {
|
||||
fakeUser := &model.User{
|
||||
Id: "123",
|
||||
AuthData: model.NewString("authData"),
|
||||
AuthData: model.NewPointer("authData"),
|
||||
AuthService: "authService",
|
||||
}
|
||||
otherFakeUser := &model.User{
|
||||
Id: "456",
|
||||
AuthData: model.NewString("authData"),
|
||||
AuthData: model.NewPointer("authData"),
|
||||
AuthService: "authService",
|
||||
}
|
||||
t.Run("first call not cached, second cached and returning same data", func(t *testing.T) {
|
||||
|
||||
Ссылка в новой задаче
Block a user