Use proper CL instead of sleep in repair_test