The documentation for the ping command only indicates that the command will return immediately even if the server is write-locked. This is not the same thing as a server being unavailable; which is what would happen during a failover.
However I didn’t find anything. Any suggestions or guidance on how to force it to timeout sooner?