My function works about 7 seconds. i test my function via {timeout,100,[{setup,S,C,F}]} and always get timeout after 5 seconds. BUT if i test my function via {timeout,1,[{setup,S,C,F}]} i will get timeout after a second.