Tweak the error test to ensure the sleep ends up in the right place