Files
mostlymatter/server/channels/api4
Agniva De Sarker bc22267829 MM-61699: Improve TestDeletePostEvent (#29575)
This test failed because TestWebHubCloseConnOnDBFail failed
and therefore the ChannelMembers table failed to be
renamed back.

We can see that in the logs:

```
teams","request_id":"sdxjxsd1wibd9mb7kc3ixj6g1w","ip_addr":"127.0.0.1","user_id":"afw9qqjh7pnddqakraxnjf1oph","method":"POST","user_id":"afw9qqjh7pnddqakraxnjf1oph","team_id":"bocubwmn4jyrmc1p9uxrc4pwfc","error":"JoinDefaultChannels: Unable to save direct channel., channel_members_save: Error 1146 (42S02): Table 'dbrt3jzcosj3nb8g6mgwmqyss9rh.ChannelMembers' doesn't exist"}
{"timestamp":"2024-11-10 13:52:34.260 Z","level":"error","msg":"Error while invalidating channel member cache","caller":"platform/web_hub.go:524","user_id":"afw9qqjh7pnddqakraxnjf1oph","error":"failed to find ChannelMembers, TeamScheme and ChannelScheme data: Error 1146 (42S02): Table 'dbrt3jzcosj3nb8g6mgwmqyss9rh.ChannelMembers' doesn't exist"}
{"timestamp":"2024-11-10 13:52:34.260 Z","level":"error","msg":"Error while invalidating channel member cache","caller":"platform/web_hub.go:524","user_id":"afw9qqjh7pnddqakraxnjf1oph","error":"failed to find ChannelMembers, TeamScheme and ChannelScheme data: Error 1146 (42S02): Table 'dbrt3jzcosj3nb8g6mgwmqyss9rh.ChannelMembers' doesn't exist"}
```

There is nothing wrong with this test. And while
we are here, we slightly improve the for-select loop
to exit faster.

https://mattermost.atlassian.net/browse/MM-61699
```release-note
NONE
```
2024-12-13 13:28:58 +05:30
..
2024-11-04 11:39:35 +05:30
2024-10-07 21:02:16 +02:00
2024-10-04 07:14:48 +02:00
2023-03-22 17:22:27 -04:00
2024-10-02 15:32:49 +02:00
2024-10-09 13:27:39 +02:00
2024-10-04 17:51:38 +02:00
2024-10-04 07:11:24 +02:00
2024-10-04 19:12:32 +02:00
2024-10-09 14:56:22 +02:00
2024-10-08 10:46:22 +02:00
2024-10-09 11:58:16 +02:00
2024-10-15 08:52:03 +02:00
2024-11-08 13:57:06 +01:00
2024-10-11 16:16:46 +02:00
2024-10-11 18:26:40 +02:00
2024-10-08 12:23:08 +02:00