It is a well-known and documented behavior that when calling the Shutdown method of an http.Server, the call to Serve, ListenAndServe and their TLS variations return the ErrServerClosed error value, unwrapped. This PR adds these methods, along with their free functions shorthands to the list of allowed errors for comparison.
It is a well-known and documented behavior that when calling the Shutdown method of an http.Server, the call to Serve, ListenAndServe and their TLS variations return the
ErrServerClosed
error value, unwrapped. This PR adds these methods, along with their free functions shorthands to the list of allowed errors for comparison.