If we're running Dendrite with coverage enabled, we need to gracefully stop the containers, as otherwise the coverage data can't be written to disk. ContainerStop will still kill the container if it fails to stop within 1 second.
As this will be used for every homeserver implementation, an alternative could be to check runtime.Homeserver and only always gracefully stop containers if it is Dendrite.
If we're running Dendrite with coverage enabled, we need to gracefully stop the containers, as otherwise the coverage data can't be written to disk.
ContainerStop
will still kill the container if it fails to stop within 1 second.As this will be used for every homeserver implementation, an alternative could be to check
runtime.Homeserver
and only always gracefully stop containers if it is Dendrite.