Remove useless sleep in test.