Fix race condition in telemetry (#18734)
* Fix race condition in telemetry * Fix tests
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c75058d4bc
Коммит
5928e4f9e0
@@ -127,11 +127,8 @@ func TestCORSRequestHandling(t *testing.T) {
|
||||
*cfg.ServiceSettings.CorsAllowCredentials = testcase.CorsAllowCredentials
|
||||
})
|
||||
defer th.TearDown()
|
||||
systemStore := mocks.SystemStore{}
|
||||
systemStore.On("Get").Return(make(model.StringMap), nil)
|
||||
licenseStore := mocks.LicenseStore{}
|
||||
licenseStore.On("Get", "").Return(&model.LicenseRecord{}, nil)
|
||||
th.App.Srv().Store.(*mocks.Store).On("System").Return(&systemStore)
|
||||
th.App.Srv().Store.(*mocks.Store).On("License").Return(&licenseStore)
|
||||
|
||||
port := th.App.Srv().ListenAddr.Port
|
||||
|
||||
Ссылка в новой задаче
Block a user