From c42839094efbeb38d12e9cae8e852de4edbf8057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Tue, 26 Sep 2023 09:48:06 +0200 Subject: [PATCH] Fix flaky test introduced in #24495 (#24603) --- server/channels/app/post_metadata_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/channels/app/post_metadata_test.go b/server/channels/app/post_metadata_test.go index 41c145b1281..9fee9cd479b 100644 --- a/server/channels/app/post_metadata_test.go +++ b/server/channels/app/post_metadata_test.go @@ -2834,7 +2834,7 @@ func TestSanitizePostMetadataForUserAndChannel(t *testing.T) { }() publicChannel, err := th.App.CreateChannel(th.Context, &model.Channel{ - Name: "private_chanenl", + Name: model.NewId(), Type: model.ChannelTypeOpen, TeamId: th.BasicTeam.Id, CreatorId: th.SystemAdminUser.Id, @@ -2956,7 +2956,7 @@ func TestSanitizePostMetadataForUser(t *testing.T) { t.Run("should remove embeds for not accessible channels", func(t *testing.T) { privateChannel, err := th.App.CreateChannel(th.Context, &model.Channel{ - Name: "private_chanenl", + Name: model.NewId(), Type: model.ChannelTypePrivate, TeamId: th.BasicTeam.Id, CreatorId: th.SystemAdminUser.Id, @@ -3010,7 +3010,7 @@ func TestSanitizePostMetadataForUser(t *testing.T) { t.Run("should remove embeds for archived channels if the config does not allow it", func(t *testing.T) { publicChannel, err := th.App.CreateChannel(th.Context, &model.Channel{ - Name: "private_chanenl", + Name: model.NewId(), Type: model.ChannelTypeOpen, TeamId: th.BasicTeam.Id, CreatorId: th.SystemAdminUser.Id,