Skip to content
Snippets Groups Projects
Commit 73eabcd3 authored by ko_oler's avatar ko_oler
Browse files

правки по ПР

parent bc1ee17a
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, "failed to install collections"), "Возникла ошибка при миграции коллекций") return errors.Wrap(errors.WithDetail(err, "Возникла ошибка при миграции коллекций"), "migrate environment")
} }
} }
......
...@@ -104,7 +104,7 @@ func TestSetup_InstallCollections(t *testing.T) { ...@@ -104,7 +104,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, "failed to install collections: 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