Adding initial retry layer version (#14954)
* Adding initial retry layer version * Some simplification around the generated code * Generating retry layer again * Improving naming generation in store generated layers * Address PR review comments * Updating store layers * Addressing PR review comments * fixing lint errors * Updating store layers * Adding license header * Applying the retry layer to the reaction_store * Regenerating retry layer
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c89c56ab2e
Коммит
1b141678fe
@@ -9,6 +9,7 @@ import (
|
||||
|
||||
"github.com/mattermost/mattermost-server/v5/model"
|
||||
"github.com/mattermost/mattermost-server/v5/store"
|
||||
"github.com/mattermost/mattermost-server/v5/store/retrylayer"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
@@ -429,6 +430,8 @@ func testReactionBulkGetForPosts(t *testing.T, ss store.Store) {
|
||||
// testReactionDeadlock is a best-case attempt to recreate the deadlock scenario.
|
||||
// It at least deadlocks 2 times out of 5.
|
||||
func testReactionDeadlock(t *testing.T, ss store.Store) {
|
||||
ss = retrylayer.New(ss)
|
||||
|
||||
post, err := ss.Post().Save(&model.Post{
|
||||
ChannelId: model.NewId(),
|
||||
UserId: model.NewId(),
|
||||
|
||||
Ссылка в новой задаче
Block a user