From 014a3b6a60610ba592c5843080686f4481553136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Thu, 29 Mar 2018 16:04:54 +0200 Subject: Fixing misspell errors (#8544) --- app/authorization_test.go | 2 +- app/channel.go | 2 +- app/command_loadtest.go | 2 +- app/diagnostics_test.go | 6 +++--- app/import_test.go | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'app') diff --git a/app/authorization_test.go b/app/authorization_test.go index 2127a682e..1900c9f41 100644 --- a/app/authorization_test.go +++ b/app/authorization_test.go @@ -19,7 +19,7 @@ func TestCheckIfRolesGrantPermission(t *testing.T) { shouldGrant bool }{ {[]string{model.SYSTEM_ADMIN_ROLE_ID}, model.PERMISSION_MANAGE_SYSTEM.Id, true}, - {[]string{model.SYSTEM_ADMIN_ROLE_ID}, "non-existant-permission", false}, + {[]string{model.SYSTEM_ADMIN_ROLE_ID}, "non-existent-permission", false}, {[]string{model.CHANNEL_USER_ROLE_ID}, model.PERMISSION_READ_CHANNEL.Id, true}, {[]string{model.CHANNEL_USER_ROLE_ID}, model.PERMISSION_MANAGE_SYSTEM.Id, false}, {[]string{model.SYSTEM_ADMIN_ROLE_ID, model.CHANNEL_USER_ROLE_ID}, model.PERMISSION_MANAGE_SYSTEM.Id, true}, diff --git a/app/channel.go b/app/channel.go index 4e405dd93..6e11d4e5d 100644 --- a/app/channel.go +++ b/app/channel.go @@ -252,7 +252,7 @@ func (a *App) WaitForChannelMembership(channelId string, userId string) { return } - // If we recieved a error but it wasn't a missing channel member then return + // If we received a error but it wasn't a missing channel member then return if result.Err.Id != store.MISSING_CHANNEL_MEMBER_ERROR { return } diff --git a/app/command_loadtest.go b/app/command_loadtest.go index 501263d04..e43a7113f 100644 --- a/app/command_loadtest.go +++ b/app/command_loadtest.go @@ -204,7 +204,7 @@ func (me *LoadTestProvider) SetupCommand(a *App, args *model.CommandArgs, messag doFuzz) } - return &model.CommandResponse{Text: "Created enviroment", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL} + return &model.CommandResponse{Text: "Created environment", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL} } func (me *LoadTestProvider) UsersCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse { diff --git a/app/diagnostics_test.go b/app/diagnostics_test.go index 869e5ddc6..2c61fb335 100644 --- a/app/diagnostics_test.go +++ b/app/diagnostics_test.go @@ -79,7 +79,7 @@ func TestDiagnostics(t *testing.T) { t.Fail() } case <-time.After(time.Second * 1): - t.Fatal("Did not recieve ID message") + t.Fatal("Did not receive ID message") } t.Run("Send", func(t *testing.T) { @@ -94,7 +94,7 @@ func TestDiagnostics(t *testing.T) { t.Fail() } case <-time.After(time.Second * 1): - t.Fatal("Did not recieve diagnostic") + t.Fatal("Did not receive diagnostic") } }) @@ -163,7 +163,7 @@ func TestDiagnostics(t *testing.T) { case <-data: t.Fatal("Should not send diagnostics when they are disabled") case <-time.After(time.Second * 1): - // Did not recieve diagnostics + // Did not receive diagnostics } }) } diff --git a/app/import_test.go b/app/import_test.go index 073741b19..1024a5438 100644 --- a/app/import_test.go +++ b/app/import_test.go @@ -1338,11 +1338,11 @@ func TestImportImportChannel(t *testing.T) { t.Fatalf("Failed to get channel count.") } - // Do a valid channel in apply mode with a nonexistant team. + // Do a valid channel in apply mode with a non-existent team. data.Name = ptrStr("channelname") data.Team = ptrStr(model.NewId()) if err := th.App.ImportChannel(&data, false); err == nil { - t.Fatalf("Expected error due to non-existant team (apply mode).") + t.Fatalf("Expected error due to non-existent team (apply mode).") } // Check that no more channels are in the DB. @@ -2501,7 +2501,7 @@ func TestImportImportDirectChannel(t *testing.T) { model.NewId(), } if err := th.App.ImportDirectChannel(&data, true); err != nil { - t.Fatalf("Expected success as cannot validate existance of channel members in dry run mode.") + t.Fatalf("Expected success as cannot validate existence of channel members in dry run mode.") } // Check that no more channels are in the DB. @@ -2515,7 +2515,7 @@ func TestImportImportDirectChannel(t *testing.T) { model.NewId(), } if err := th.App.ImportDirectChannel(&data, true); err != nil { - t.Fatalf("Expected success as cannot validate existance of channel members in dry run mode.") + t.Fatalf("Expected success as cannot validate existence of channel members in dry run mode.") } // Check that no more channels are in the DB. -- cgit v1.2.3-1-g7c22