minhtrannhat 84fc74a0d1
feat: subscribe API route skeleton
- Added `serde` crate for serialisation or deserialisation of data
- Added test cases for the `subscribe` API route
- Refactor the testing setup to another module `test_utils`
- use random TCP port for testing
2024-04-22 17:00:55 -04:00
..
2024-04-22 17:00:55 -04:00

Tests

Notes

tokio spins up a new async runtime every time at the beginning of each test case and shutdown at the end of each test case the spawn_app() function therefore only survives as long as the runtime.