Fix SQL syntax error when a non-existant channelId is attemted to be viewed. (#9975)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
749a3e7538
Коммит
fb12a739e5
@@ -1416,7 +1416,17 @@ func TestViewChannel(t *testing.T) {
|
||||
|
||||
view.PrevChannelId = "junk"
|
||||
_, resp = Client.ViewChannel(th.BasicUser.Id, view)
|
||||
CheckNoError(t, resp)
|
||||
CheckBadRequestStatus(t, resp)
|
||||
|
||||
view.PrevChannelId = ""
|
||||
view.ChannelId = "junk"
|
||||
_, resp = Client.ViewChannel(th.BasicUser.Id, view)
|
||||
CheckBadRequestStatus(t, resp)
|
||||
|
||||
view.ChannelId = "correctlysizedjunkdddfdfdf"
|
||||
_, resp = Client.ViewChannel(th.BasicUser.Id, view)
|
||||
CheckBadRequestStatus(t, resp)
|
||||
view.ChannelId = th.BasicChannel.Id
|
||||
|
||||
member, resp := Client.GetChannelMember(th.BasicChannel.Id, th.BasicUser.Id, "")
|
||||
CheckNoError(t, resp)
|
||||
|
||||
Ссылка в новой задаче
Block a user