
Testing
Testing Graceful Shutdown and Signal Handling in Rust Apps
Make shutdown testable by taking a shutdown future instead of listening for signals inside the server. Assert that in-flight requests finish, new ones are refused and the process exits within a deadline.
4 min read