Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 14:21
    Ralf1108 edited #3933
  • 14:17
    Ralf1108 opened #3933
  • 12:57
    Aaronontheweb commented #3904
  • 12:15
    Aaronontheweb synchronize #3927
  • 11:21
    Zetanova synchronize #3916
  • 08:35

    Aaronontheweb on dev

    Fix build script to be able to … (compare)

  • 08:35
    Aaronontheweb closed #3924
  • 08:28
    Aaronontheweb synchronize #3927
  • 08:28
    Aaronontheweb synchronize #3924
  • 08:28

    Aaronontheweb on dev

    added updated Windows Release p… Merge pull request #3869 from A… Fixed Akka.Remote.ResendUnfulfi… and 6 more (compare)

  • 08:28
    Aaronontheweb closed #3932
  • 08:22
    Aaronontheweb opened #3932
  • 08:16

    Aaronontheweb on 1.3.15

    (compare)

  • 08:14

    Aaronontheweb on master

    Fixed Akka.Remote.ResendUnfulfi… added v1.4.0-beta2 release note… added Akka.NET v1.3.15 release … and 2 more (compare)

  • 08:14
    Aaronontheweb closed #3931
  • 08:11
    Aaronontheweb synchronize #3931
  • 07:59
    Aaronontheweb commented #3905
  • 07:58
    Aaronontheweb edited #3931
  • 07:57
    Aaronontheweb commented #3889
  • 07:54
    Aaronontheweb synchronize #3931
Bartosz Sypytkowski
@Horusiath
@paulinfrancis yes
Francis Paulin
@paulinfrancis
awesome, thanks :)
Daniel Söderberg
@raskolnikoov
Hi all, when writing test with TestKit, is it possible to test that a actor receives a certain message?
Maxim Cherednik
@maxcherednik
hi, sure you can
Daniel Söderberg
@raskolnikoov
example?
@maxcherednik
Maxim Cherednik
@maxcherednik
Daniel Söderberg
@raskolnikoov
yes, I forgot to tell, my actor is a AtLeastOnceReciveActor (persistence)
maybe thats the problem in there
Maxim Cherednik
@maxcherednik
so ok. which part is not exactly working?
Daniel Söderberg
@raskolnikoov
I tell my actor and that actor starts another actor that does some magic and tells my actor the result. the result message is what I want to test
but it dosent get it in my TestKit void...
Maxim Cherednik
@maxcherednik
basically what you are testing is simple request response, hence the very first example from that blog should work...
another thing - when you actually hit the storage - it's not exactly a unit test
how about you replace all the storage actors and try it again ?
cause from what you describe - it should work
if you do everything else right, the only reason to fail is wrong persistence configuration
Daniel Söderberg
@raskolnikoov
no it dosent work.. :(
tried to do it with a simple A and B actor test... I called my A actor that calls B actor and returns to A actor... the return message to my A actor dosent every occur in my ExpectMsg
:/
I want to catch the Recive<MyMessage>
Maxim Cherednik
@maxcherednik
hm...
Daniel Söderberg
@raskolnikoov
im trying to test a actor that never returns a message
I just want to check that it gets a certain message
Maxim Cherednik
@maxcherednik
then there is something wrong in general
what about the very simple scenario ?
Daniel Söderberg
@raskolnikoov
that dosent work
Maxim Cherednik
@maxcherednik
like one actor - you send ping, it responds pong and you expect this pong on the test actor ?
Daniel Söderberg
@raskolnikoov
let me upload an example
how can I test this example with valid result :)
Maxim Cherednik
@maxcherednik
ok, like I thought it's not that simple then

so when you are here:

Receive<MessageFromB>(msg =>
{
//test if this happends in here!
});

you don't send it back to the original caller, right ?
Daniel Söderberg
@raskolnikoov
no that's the end
so I would like to check that this end occurs
Maxim Cherednik
@maxcherednik
in this case you can't test this
Daniel Söderberg
@raskolnikoov
daaaaaaaaam
:P
that's something you want tested :)
Maxim Cherednik
@maxcherednik
from the same article I sent
"How do I test a parent/child relationship?"
check it
actually it's not exactly this...
nevermind
I think you should test something else
give me a sec
Daniel Söderberg
@raskolnikoov
hehe and get a cup of coffee :)
brbr!
Daniel Söderberg
@raskolnikoov
back @maxcherednik