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
There were 3 failures:
1) React\Tests\Socket\FunctionalSecureServerTest::testEmitsErrorIfConnectionIsCancelled
Expectation failed for method name is equal to <string:__invoke> when invoked 1 time(s).
Method was expected to be called 1 times, actually called 0 times.
2) React\Tests\Socket\FunctionalTcpServerTest::testEmitsConnectionEvenIfConnectionIsCancelled
Expectation failed for method name is equal to <string:__invoke> when invoked 1 time(s).
Method was expected to be called 1 times, actually called 0 times.
3) React\Tests\Socket\UnixConnectorTest::testValid
Failed asserting that Binary String: 0x756e69783a2f2f000000000000000000000000000000 is null.
/Users/andig/Documents/htdocs/react-socket/tests/UnixConnectorTest.php:62
1) React\Tests\Socket\FunctionalSecureServerTest::testEmitsErrorIfConnectionIsCancelled
Expectation failed for method name is equal to <string:__invoke> when invoked 1 time(s).
Method was expected to be called 1 times, actually called 0 times.
2) React\Tests\Socket\FunctionalTcpServerTest::testEmitsConnectionEvenIfConnectionIsCancelled
Expectation failed for method name is equal to <string:__invoke> when invoked 1 time(s).
Method was expected to be called 1 times, actually called 0 times.
~/htdocs/react-socket master ⇡ 6s
❯ repeat 10 phpunit tests/FunctionalTcpServerTest.php
................. 17 / 17 (100%)
Time: 1.64 seconds, Memory: 12.00MB
OK (17 tests, 31 assertions)
........F........ 17 / 17 (100%)
Time: 1.62 seconds, Memory: 12.00MB
There was 1 failure:
1) React\Tests\Socket\FunctionalTcpServerTest::testEmitsConnectionEvenIfConnectionIsCancelled
Expectation failed for method name is equal to <string:__invoke> when invoked 1 time(s).
Method was expected to be called 1 times, actually called 0 times.
Tests: 17, Assertions: 30, Failures: 1.
................. 17 / 17 (100%)
Time: 1.66 seconds, Memory: 12.00MB
OK (17 tests, 31 assertions)
................. 17 / 17 (100%)
Time: 1.62 seconds, Memory: 12.00MB
OK (17 tests, 31 assertions)
........F........ 17 / 17 (100%)
Time: 1.62 seconds, Memory: 12.00MB
There was 1 failure:
1) React\Tests\Socket\FunctionalTcpServerTest::testEmitsConnectionEvenIfConnectionIsCancelled
Expectation failed for method name is equal to <string:__invoke> when invoked 1 time(s).
Method was expected to be called 1 times, actually called 0 times.
Tests: 17, Assertions: 30, Failures: 1.
................. 17 / 17 (100%)
Time: 1.61 seconds, Memory: 12.00MB
OK (17 tests, 31 assertions)
................. 17 / 17 (100%)
Time: 1.62 seconds, Memory: 12.00MB
OK (17 tests, 31 assertions)
........F........ 17 / 17 (100%)
Time: 1.6 seconds, Memory: 12.00MB
There was 1 failure:
1) React\Tests\Socket\FunctionalTcpServerTest::testEmitsConnectionEvenIfConnectionIsCancelled
Expectation failed for method name is equal to <string:__invoke> when invoked 1 time(s).
Method was expected to be called 1 times, actually called 0 times.
Tests: 17, Assertions: 30, Failures: 1.
........F........ 17 / 17 (100%)
Time: 1.65 seconds, Memory: 12.00MB
There was 1 failure:
1) React\Tests\Socket\FunctionalTcpServerTest::testEmitsConnectionEvenIfConnectionIsCancelled
Expectation failed for method name is equal to <string:__invoke> when invoked 1 time(s).
Method was expected to be called 1 times, actually called 0 times.
Tests: 17, Assertions: 30, Failures: 1.
........F........ 17 / 17 (100%)
Time: 1.6 seconds, Memory: 12.00MB
There was 1 failure:
1) React\Tests\Socket\FunctionalTcpServerTest::testEmitsConnectionEvenIfConnectionIsCancelled
Expectation failed for method name is equal to <string:__invoke> when invoked 1 time(s).
Method was expected to be called 1 times, actually called 0 times.
Tests: 17, Assertions: 30, Failures: 1.
Is it possible that 1 and 2 are somehow none-deterministic?
Activity
[-]Test failures on OSX[/-][+]Test failures on Mac OS X[/+]clue commentedon Oct 7, 2017
Thanks for reporting! Can anybody else with Mac OS X confirm these issues? Also, PRs would be welcome!
WyriHaximus commentedon Oct 7, 2017
@clue travis supports running the tests on OS X, but IIRC it's a bit of work to get it working: https://docs.travis-ci.com/user/reference/osx/
jsor commentedon Oct 7, 2017
I can confirm (latest master including #123):
andig commentedon Oct 9, 2017
Is it possible that 1 and 2 are somehow none-deterministic?
andig commentedon Oct 9, 2017
I've checked if the underlying stream may be the culprit and found reactphp/stream#111 but it seems unrelated.
WyriHaximus commentedon Oct 9, 2017
@andig does it still fail sometimes within the same run when using
--repeat 100with phpunitandig commentedon Oct 9, 2017
After failing once the tests get stuck for good on my slowish machine:
or
clue commentedon Oct 13, 2017
For the reference: Can anybody run the test suite on Windows and confirm that this is a Mac issue only?
WyriHaximus commentedon Oct 13, 2017
@clue on windows it hangs on
TcpConnectorTest::connectionToEmptyPortShouldFail'