Tests not running when corrects

Tests not running when corrects

by Ulysse Coscoy -
Number of replies: 4

Hi,

I have an issue with every correct test i have never return anything (just wait until the end of the test time).

If a test is a failure, it will fail normally, any idea why ?

thanks in advance.


In reply to Ulysse Coscoy

Re: Tests not running when corrects

by Aaron Joos Lippeveldts -

If you mean that the test will run forever and not show any output without -v, it probably means the test is passing but is waiting forever for your gossipers to exit.

I had the same problem, and it turned out the stopMsg thing did not work anymore on my computer. I don't know why, golang update maybe(?) but whenever I tried to send a message to a socket using itself it would quietly fail with error "sendto: invalid argument 127.0.0.1:0". Maybe you have the same issue?

In reply to Aaron Joos Lippeveldts

Re: Tests not running when corrects

by Dorian Ros -

I had the same problem at the beginning. You might want to look at the address that is given to your gossiper during their instantiation in the tests, this might give you a clue to what is happening.

In reply to Dorian Ros

Re: Tests not running when corrects

by Aaron Joos Lippeveldts -

Oh, so they are not given a port anymore by the tests, I did not check that at all and just changed my code to remove the stopMsg.

Thanks for the info.

In reply to Aaron Joos Lippeveldts

Re: Tests not running when corrects

by Ulysse Coscoy -

Thanks a lot, my stop function was Sending a message on a wrong port !