functest: Adjust job timeout based on the loop