fix mock method about timeout