- 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
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.