Skip to content
Snippets Groups Projects
Commit 6374f1d7 authored by ko_oler's avatar ko_oler
Browse files

правки по ПР

parent 86d159be
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,7 @@ func (s *Setup) InstallCollections(ctx context.Context) (err error) { ...@@ -113,7 +113,7 @@ func (s *Setup) InstallCollections(ctx context.Context) (err error) {
zap.Error(err), zap.Error(err),
) )
return errors.WithDetail(errors.Wrap(err, "migrate environment"), "Возникла ошибка при миграции данных")) return errors.WithDetail(errors.Wrap(err, "migrate environment"), "Возникла ошибка при миграции данных")
} }
} }
......
...@@ -105,7 +105,7 @@ func TestSetup_InstallCollections(t *testing.T) { ...@@ -105,7 +105,7 @@ func TestSetup_InstallCollections(t *testing.T) {
wantErr: func(t *testing.T, err error) { wantErr: func(t *testing.T, err error) {
assert.Error(t, err) assert.Error(t, err)
assert.EqualError(t, err, "migrate environment: migrate error") assert.EqualError(t, err, "migrate environment: migrate error")
assert.Contains(t, errors.GetDetail(err), "Возникла ошибка при миграции коллекций") assert.Contains(t, errors.GetDetail(err), "Возникла ошибка при миграции данных")
}, },
}, },
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment