Speaking about the functionnality, I wonder about people trying to test 
unmanaged backend shutdown for example, with previous version, checking a 
backend stop sending message was easily done with 
eventually(expectNoMsg)

which would not work anymore. But that's not my case and I think it's still 
possible (even if not nice).

Le lundi 8 janvier 2018 11:22:04 UTC+1, Christophe Pache a écrit :
>
> Hello Conrad, thanks for answering! 
>
> I was speaking about the internal queue of the TestActor.
>
> I upgraded from 2.5.3 to 2.5.8, in 2.5.3, the behavior was not the same: 
>
>
>
>         
> private def expectNoMsg_internal(max: FiniteDuration) {
>    val o = receiveOne(max)
>    assert(o eq null, s"received unexpected message $")
>    lastWasNoMsg = true
>  }
>
>
>
> Le lundi 8 janvier 2018 11:14:17 UTC+1, Konrad Malawski a écrit :
>>
>> What do you mean?
>> What queue?
>>
>> They are both implemented using the exact same internal method:
>>
>> @deprecated(message = "Use expectNoMessage instead", since = "2.5.5")
>> def expectNoMsg(max: FiniteDuration) {
>>   expectNoMsg_internal(max.dilated)
>> }
>>
>> /**
>>  * Assert that no message is received for the specified time.
>>  * Supplied value is not dilated.
>>  */
>> def expectNoMessage(max: FiniteDuration) = {
>>   expectNoMsg_internal(max)
>> }
>>
>>
>>
>> Do you mean some other API? If yes, which one?
>>
>> -- 
>> Cheers,
>> Konrad 'ktoso <http://kto.so>' Malawski
>> Akka <http://akka.io/> @ Lightbend <http://lightbend.com/>
>>
>> On January 8, 2018 at 19:11:30, Christophe Pache ([email protected]) 
>> wrote:
>>
>> Hello everyone,
>>
>> I would be interested to understand why `expectNoMessage`, in case there 
>> is unexpected message, keeps it on the queue (compared to expectNoMsg). 
>> It's all fine but from API point of view, my feelings would not expect such 
>> behavior (maybe because of other API). Maybe more doc on that would be an 
>> idea.
>>
>> Thanks and have a nice day.
>>
>> Christophe
>> --
>> >>>>>>>>>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to