Then it must have been magic and not this configuration parameter that made 
the tests pass :)
Thanks for your clear and fast reply!

Op woensdag 4 november 2015 16:27:32 UTC+1 schreef Konrad Malawski:
>
> As I mentioned, akka*.test.*timefactor only affects test utilities 
> (expectMsg and friends), 
> not ask nor any other Timeouts that you may have set in your application.
> Time dilation is documented in the TestKit section AFAIR, and that's where 
> it applies, not to the entirety of Akka :-)
>
>
> You can manually (or write a .dilated function) do the same in application 
> code, but it's not something we provide.
> If you really want dilation to apply to app level timeouts, you can use 
> something like:
>
> def dilated(d: FiniteDuration)(implicit system: ActorSystem): FiniteDuration =
>   (duration * 
> system.settings.config.getDouble("akka.test.timefactor")).asInstanceOf[FiniteDuration]
>
> to write `myDuration.dilated`.
>
>
> Happy hakking!
>
> -- 
> Cheers,
> Konrad 'ktoso’ Malawski
> Akka <http://akka.io> @ Typesafe <http://typesafe.com>
>
> On 4 November 2015 at 16:22:15, Jan-Pieter van den Heuvel (
> jpi...@gmail.com <javascript:>) wrote:
>
> Hi Konrad,
>
> Thanks for your answer. I thought the timefactor was applied to all 
> timeouts, for example also to the timeout used for akka.pattern.ask inside 
> the actor you are testing. I was using a timeout on an ask of 100ms, the 
> tests on the build server failed, but using akka.test.timefactor seems to 
> have solved that. Did I misunderstand?
>
> Kind regards,
> Jan-Pieter
>
> Op woensdag 4 november 2015 16:09:05 UTC+1 schreef Konrad Malawski: 
>>
>> Hi Jan!
>> Thanks for asking,
>>
>> This is expected behaviour though, not a bug.
>> The akka.*test.timefactor* affects only the testing utilities, like 
>> expectMsg and it's friends.
>>
>> If you want to you can apply dilation manually, based on env variables to 
>> your timeouts (in prod code).
>>
>> Thanks and happy hakking!
>>
>> -- 
>> Cheers,
>> Konrad 'ktoso’ Malawski
>> Akka <http://akka.io> @ Typesafe <http://typesafe.com>
>>
>> On 4 November 2015 at 16:06:47, Jan-Pieter van den Heuvel (
>> jpi...@gmail.com) wrote:
>>
>> Hi,
>>
>> I'm running into a problem when performing asynchronous integration tests 
>> for an actor on a Jenkins build server. As suggested in the documentation (
>> http://doc.akka.io/docs/akka/2.3.9/scala/testing.html#Accounting_for_Slow_Test_Systems)
>>  
>> I am using akka.test.timefactor to increase the timeouts. It seems however 
>> that the ReceiveTimeout that is set in the actor using 
>> context.setReceiveTimeout is not multiplied by this factor. Is this 
>> expected behaviour or might this be a bug?
>> I am running on Akka 2.3.9; the release notes of newer versions do not 
>> mention fixing an issue regarding this.
>>
>> Kind regards,
>> Jan-Pieter
>> --
>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>> >>>>>>>>>> Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
>> ---
>> You received this message because you are subscribed to the Google Groups 
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to akka-user+...@googlegroups.com.
>> To post to this group, send email to akka...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: 
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups 
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to akka-user+...@googlegroups.com <javascript:>.
> To post to this group, send email to akka...@googlegroups.com 
> <javascript:>.
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to