From fac12451433d029ea696a851790427cab444d67f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Garc=C3=ADa=20Montoro?= Date: Tue, 27 Feb 2024 03:43:12 +0100 Subject: [PATCH] Fix "doesn't exists" typo (#26307) --- server/channels/app/import_functions_test.go | 4 ++-- server/cmd/mmctl/commands/config_e2e_test.go | 2 +- server/cmd/mmctl/commands/config_test.go | 6 +++--- server/cmd/mmctl/commands/utils_unix.go | 2 +- server/cmd/mmctl/commands/utils_windows.go | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/server/channels/app/import_functions_test.go b/server/channels/app/import_functions_test.go index 42e7f94b2d..b44e838ca0 100644 --- a/server/channels/app/import_functions_test.go +++ b/server/channels/app/import_functions_test.go @@ -1588,7 +1588,7 @@ func TestImportUserTeams(t *testing.T) { expectedUserChannels: 0, }, { - name: "Should fail if one of the roles doesn't exists", + name: "Should fail if one of the roles doesn't exist", data: &[]imports.UserTeamImportData{ { Name: &th.BasicTeam.Name, @@ -1810,7 +1810,7 @@ func TestImportUserChannels(t *testing.T) { expectedUserChannels: 0, }, { - name: "Should fail if one of the roles doesn't exists", + name: "Should fail if one of the roles doesn't exist", data: &[]imports.UserChannelImportData{ { Name: &th.BasicChannel.Name, diff --git a/server/cmd/mmctl/commands/config_e2e_test.go b/server/cmd/mmctl/commands/config_e2e_test.go index 92d745ccd8..a2c00dd56c 100644 --- a/server/cmd/mmctl/commands/config_e2e_test.go +++ b/server/cmd/mmctl/commands/config_e2e_test.go @@ -144,7 +144,7 @@ func (s *MmctlE2ETestSuite) TestConfigSetCmd() { s.Require().Equal("mysql", *(config.SqlSettings.DriverName)) }) - s.RunForSystemAdminAndLocal("Get error if the key doesn't exists", func(c client.Client) { + s.RunForSystemAdminAndLocal("Get error if the key doesn't exist", func(c client.Client) { printer.Clean() args := []string{"SqlSettings.WrongKey", "mysql"} diff --git a/server/cmd/mmctl/commands/config_test.go b/server/cmd/mmctl/commands/config_test.go index c5a41b93bc..d2ab07bbee 100644 --- a/server/cmd/mmctl/commands/config_test.go +++ b/server/cmd/mmctl/commands/config_test.go @@ -140,7 +140,7 @@ func (s *MmctlUnitTestSuite) TestConfigGetCmd() { s.Require().Len(printer.GetErrorLines(), 0) }) - s.Run("Get error if the key doesn't exists", func() { + s.Run("Get error if the key doesn't exist", func() { printer.Clean() args := []string{"SqlSettings.WrongKey"} outputConfig := &model.Config{} @@ -443,7 +443,7 @@ func (s *MmctlUnitTestSuite) TestConfigSetCmd() { s.Require().Len(printer.GetLines(), 0) }) - s.Run("Get error if the key doesn't exists", func() { + s.Run("Get error if the key doesn't exist", func() { printer.Clean() defaultConfig := &model.Config{} defaultConfig.SetDefaults() @@ -713,7 +713,7 @@ func (s *MmctlUnitTestSuite) TestConfigResetCmd() { s.Require().Len(printer.GetErrorLines(), 0) }) - s.Run("Should fail if the key doesn't exists", func() { + s.Run("Should fail if the key doesn't exist", func() { printer.Clean() args := []string{"WrongKey"} defaultConfig := &model.Config{} diff --git a/server/cmd/mmctl/commands/utils_unix.go b/server/cmd/mmctl/commands/utils_unix.go index 9447058906..2289a6aa6b 100644 --- a/server/cmd/mmctl/commands/utils_unix.go +++ b/server/cmd/mmctl/commands/utils_unix.go @@ -21,7 +21,7 @@ func checkValidSocket(socketPath string) error { // check file mode and permissions fi, err := os.Stat(socketPath) if err != nil && os.IsNotExist(err) { - return fmt.Errorf("socket file %q doesn't exists, please check the server configuration for local mode", socketPath) + return fmt.Errorf("socket file %q doesn't exist, please check the server configuration for local mode", socketPath) } else if err != nil { return err } diff --git a/server/cmd/mmctl/commands/utils_windows.go b/server/cmd/mmctl/commands/utils_windows.go index e67df3bf89..5fb0625b96 100644 --- a/server/cmd/mmctl/commands/utils_windows.go +++ b/server/cmd/mmctl/commands/utils_windows.go @@ -13,7 +13,7 @@ func checkValidSocket(socketPath string) error { // check file mode and permissions fi, err := os.Stat(socketPath) if err != nil && os.IsNotExist(err) { - return fmt.Errorf("socket file %q doesn't exists, please check the server configuration for local mode", socketPath) + return fmt.Errorf("socket file %q doesn't exist, please check the server configuration for local mode", socketPath) } else if err != nil { return err }