e00d57fee2
The test ends up with checking that the redact endpoint has been hit once. It's actually the send queue doing the redaction as a dependent send request, and it doesn't provide any notification mechanism in this case, so we can't really know when it's done doing it. One solution would be to not check the number of calls to the redact/ endpoint, but that means checking for fewer things. Instead, I made it so that when hit, the endpoint will signal it to the main task using a oneshot channel; then the main task waits with a long timeout for the receiving end to get the notification it's been sent, which should be sufficient.