Tests usually last between half an hour and two hours. The exact length is set by your recruiter and depends on the number of tasks and you'll be able to check it by going to the test intro page.
Keep in mind that once you begin the test you cannot stop the timer.