From 380d30bba29edd805d9338cdbd8405c0f6d77ec8 Mon Sep 17 00:00:00 2001 From: Fahmi Zulhasymi Date: Tue, 3 Dec 2024 19:51:03 +0700 Subject: [PATCH] fix unit test by add more context on shared channel testcase --- conversation_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conversation_test.go b/conversation_test.go index cd28f11c..d49d92dc 100644 --- a/conversation_test.go +++ b/conversation_test.go @@ -165,6 +165,12 @@ func TestCreateSharedChannel(t *testing.T) { channel.LastRead = "1401383885.000061" channel.UnreadCount = 0 channel.UnreadCountDisplay = 0 + channel.IsShared = true + channel.IsExtShared = true + channel.ContextTeamID = "T1ABCD2E12" + channel.ConversationHostID = "T07XY8FPJ5C" + channel.SharedTeamIDs = []string{"T07XY8FPJ5C"} + channel.ConnectedTeamIDs = []string{"T07XY8FPJ5C", "T1ABCD2E12"} assertSharedChannel(t, channel) }