pub fn set_max_wait(max_wait: Duration)
Expand description

Sets the maximum amount of time the serial locks will wait to unlock. By default, this is set to 60 seconds, which is almost always much longer than is needed. This is deliberately set high to try and avoid situations where we accidentally hit the limits but is set at all so we can timeout rather than hanging forever.

However, sometimes if you’ve got a lot of serial tests it might theoretically not be enough, hence this method.