You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For me Inbox_have_maximum_queue_size fails sometimes.
The test ends with this part that fails:
//The inbox should be empty now, so receiving should result in a timeout Assert.Throws<TimeoutException>(()=>{varreceived=_inbox.Receive(TimeSpan.FromSeconds(1));Log.Error("Received "+received);});
Inbox times out, but depending on where and how it does it different things happens.
Receive is implemented like this:
vartask=Receiver.Ask(newGet(DateTime.Now+timeout),Timeout.InfiniteTimeSpan);if(task.Wait(timeout)){returntask.Result;}else{varfmt=string.Format("Inbox {0} didn't received a response message in specified timeout {1}",Receiver.Path,timeout);thrownewTimeoutException(fmt);}
If task.Wait times out the code returns false, and the expected exception is thrown and the test passes.
If the inbox times out internally (when handling the Kick message) the Receiver gets a Status.Failure(new TimeoutException("Deadline passed")) and the test failes.
Which is correct? To send a Failure message to receiver or raise a TimeoutException?
The text was updated successfully, but these errors were encountered:
For me Inbox_have_maximum_queue_size fails sometimes.
The test ends with this part that fails:
Inbox times out, but depending on where and how it does it different things happens.
Receive
is implemented like this:If
task.Wait
times out the code returnsfalse
, and the expected exception is thrown and the test passes.If the inbox times out internally (when handling the Kick message) the
Receiver
gets aStatus.Failure(new TimeoutException("Deadline passed"))
and the test failes.Which is correct? To send a
Failure
message to receiver or raise aTimeoutException
?The text was updated successfully, but these errors were encountered: