Agniva De Sarker 456bd4cd70 MM-23063: Fix flaky test TestTermsOfServiceStore (#15321)
* MM-23063: Fix flaky test TestTermsOfServiceStore

The call to testGetLatestTermsOfService would happen after testSaveTermsOfService
which would persist the data between calls. Therefore, if they were to happen under
a milisecond, there would be 2 rows with the same CreateAt timestamp and the DB
would randomly return any row.

If this were to happen, then the wrong row would not match the user id and would fail.

To fix this, we just clear the table data before proceeding with the test.

https://mattermost.atlassian.net/browse/MM-23063

* Use t.Cleanup to refactor things

* Fix cleanup of tables

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-08-24 09:20:57 +02:00
2020-08-21 16:49:31 -04:00
2020-08-21 16:49:31 -04:00
2020-01-23 12:34:29 +01:00
2020-08-24 11:16:35 +05:30
2020-08-21 16:49:31 -04:00
2020-08-20 19:37:19 +05:30
2020-08-20 19:37:19 +05:30
2020-08-21 16:49:31 -04:00
2020-08-21 16:49:31 -04:00
2020-08-21 16:49:31 -04:00
2020-03-13 18:35:31 +01:00
2019-04-04 09:49:07 -04:00
2018-05-30 10:23:25 -04:00
2020-08-22 21:57:42 +05:30
2020-08-22 21:57:42 +05:30
2020-07-31 14:46:22 +02:00
2020-04-09 09:49:18 -04:00

Mattermost

Mattermost is an open source, private cloud, Slack-alternative from https://mattermost.com.

It's written in Golang and React and runs as a single Linux binary with MySQL or PostgreSQL. Every month on the 16th a new compiled version is released under an MIT license.

screenshot at nov 29 14-11-32

Try out Mattermost

Deploy on Heroku

Deploy a Preview

Note: Heroku preview does not include email or persistent storage

Deploy on a Cloud Platform via Bitnami

Auto-deploy Mattermost to Amazon Web Services, Azure, Google Cloud Platform, or Oracle Cloud Platform via Bitnami.

Install on Your Own Machine

Native Mobile and Desktop Apps

In addition to the web interface, you can also download Mattermost clients for Android, iOS, Windows PC, Mac OSX, and Linux.

Google Play App Store Windows PC Mac OSX Linux

Get Security Bulletins

Receive notifications of critical security updates. The sophistication of online attackers is perpetually increasing. If you are deploying Mattermost it is highly recommended you subscribe to the Mattermost Security Bulletin mailing list for updates on critical security releases.

Get Involved

Learn More

Get the Latest News

Any other questions, mail us at info@mattermost.com. Wed love to meet you!

Описание
No description provided
Readme 636 MiB
Languages
TypeScript 47%
Go 40.2%
JavaScript 8.6%
SCSS 2.8%
HTML 1.1%
Разное 0.2%