spelling: strings (#19542)
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com> Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
@@ -147,7 +147,7 @@ func TestConfigEnvironmentOverrides(t *testing.T) {
|
||||
base, err := NewStoreFromBacking(memstore, nil, false)
|
||||
require.NoError(t, err)
|
||||
originalConfig := &model.Config{}
|
||||
originalConfig.ServiceSettings.SiteURL = model.NewString("http://notoverriden.ca")
|
||||
originalConfig.ServiceSettings.SiteURL = model.NewString("http://notoverridden.ca")
|
||||
|
||||
os.Setenv("MM_SERVICESETTINGS_SITEURL", "http://overridden.ca")
|
||||
defer os.Unsetenv("MM_SERVICESETTINGS_SITEURL")
|
||||
|
||||
@@ -245,7 +245,7 @@ func TestDatabaseStoreGet(t *testing.T) {
|
||||
assert.True(t, cfg == cfg2, "Get() returned different configuration instances")
|
||||
}
|
||||
|
||||
func TestDatabaseStoreGetEnivironmentOverrides(t *testing.T) {
|
||||
func TestDatabaseStoreGetEnvironmentOverrides(t *testing.T) {
|
||||
t.Run("get override for a string variable", func(t *testing.T) {
|
||||
_, tearDown := setupConfigDatabase(t, testConfig, nil)
|
||||
defer tearDown()
|
||||
@@ -861,7 +861,7 @@ func TestDatabaseStoreLoad(t *testing.T) {
|
||||
assert.Equal(t, "http://trailingslash", *ds.Get().ServiceSettings.SiteURL)
|
||||
})
|
||||
|
||||
t.Run("listeners notifed on change", func(t *testing.T) {
|
||||
t.Run("listeners notified on change", func(t *testing.T) {
|
||||
_, tearDown := setupConfigDatabase(t, emptyConfig, nil)
|
||||
defer tearDown()
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ func TestRemoveEnvOverrides(t *testing.T) {
|
||||
{
|
||||
name: "[]string setting",
|
||||
inputConfig: modifiedDefault(func(in *model.Config) {
|
||||
in.SqlSettings.DataSourceReplicas = []string{"somthing"}
|
||||
in.SqlSettings.DataSourceReplicas = []string{"something"}
|
||||
}),
|
||||
env: map[string]string{
|
||||
"MM_SQLSETTINGS_DATASOURCEREPLICAS": "otherthing alsothis",
|
||||
|
||||
@@ -271,7 +271,7 @@ func TestFileStoreGet(t *testing.T) {
|
||||
assert.False(t, newCfg == cfg, "returned config should have been different from original")
|
||||
}
|
||||
|
||||
func TestFileStoreGetEnivironmentOverrides(t *testing.T) {
|
||||
func TestFileStoreGetEnvironmentOverrides(t *testing.T) {
|
||||
t.Run("get override for a string variable", func(t *testing.T) {
|
||||
path, tearDown := setupConfigFile(t, testConfig)
|
||||
defer tearDown()
|
||||
@@ -855,7 +855,7 @@ func TestFileStoreLoad(t *testing.T) {
|
||||
assert.Equal(t, "en", *fs.Get().LocalizationSettings.DefaultClientLocale)
|
||||
})
|
||||
|
||||
t.Run("listeners notifed", func(t *testing.T) {
|
||||
t.Run("listeners notified", func(t *testing.T) {
|
||||
path, tearDown := setupConfigFile(t, emptyConfig)
|
||||
defer tearDown()
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user