flaky test fix related to product notices (#16209)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
122acc3dd7
Коммит
997e77f495
@@ -69,8 +69,11 @@ func Setup(tb testing.TB) *TestHelper {
|
|||||||
|
|
||||||
func setupTestHelper(t testing.TB, store store.Store, includeCacheLayer bool) *TestHelper {
|
func setupTestHelper(t testing.TB, store store.Store, includeCacheLayer bool) *TestHelper {
|
||||||
memoryStore := config.NewTestMemoryStore()
|
memoryStore := config.NewTestMemoryStore()
|
||||||
*memoryStore.Get().AnnouncementSettings.AdminNoticesEnabled = false
|
newConfig := memoryStore.Get().Clone()
|
||||||
*memoryStore.Get().AnnouncementSettings.UserNoticesEnabled = false
|
*newConfig.AnnouncementSettings.AdminNoticesEnabled = false
|
||||||
|
*newConfig.AnnouncementSettings.UserNoticesEnabled = false
|
||||||
|
memoryStore.Set(newConfig)
|
||||||
|
|
||||||
var options []app.Option
|
var options []app.Option
|
||||||
options = append(options, app.ConfigStore(memoryStore))
|
options = append(options, app.ConfigStore(memoryStore))
|
||||||
options = append(options, app.StoreOverride(mainHelper.Store))
|
options = append(options, app.StoreOverride(mainHelper.Store))
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user