8 Commits

Author SHA1 Message Date
Kegan Dougal
a7eed93722 Add comprehensive regression test for GlobalSnapshot(); ensure we clear db conns when tests end 2023-01-18 14:54:26 +00:00
Kegan Dougal
aa28df161c Rename package -> github.com/matrix-org/sliding-sync 2022-12-15 11:08:50 +00:00
Kegan Dougal
6e55f7f608 tests: make a consistent test env for both local and CI runs
- Only have a single database for all tests, like CI.
- Calling `PrepareDBConnectionString` drops all tables before returning
  the string.
- Tests must be run with no concurrency else they will step on each other
  due to the previous point.

This should prevent cases where local tests pass but CI fails.
2021-11-09 10:15:48 +00:00
Kegan Dougal
749e4d413e Add integration tests on the http handler 2021-07-21 16:35:36 +01:00
Kegan Dougal
ea0fac859a Factor out psql test rig 2021-07-21 15:28:31 +01:00
Kegan Dougal
1df6237cb4 Add last (un)confirmed tokens to sessions
Also make session IDs an int64. Add tests.
2021-06-16 18:11:40 +01:00
Kegan Dougal
8d640a7c16 GH action support 2021-06-03 15:23:07 +01:00
Kegan Dougal
0dcd3fac09 Make tests work for others, add timeline calculations 2021-06-03 14:35:34 +01:00