hoaproject / Websocket

The Hoa\Websocket library.
https://hoa-project.net/
422 stars 75 forks source link

Test failure #98

Open olegstan opened 7 years ago

olegstan commented 7 years ago

I run tests on my server and got this errors

There are 4 failures Hoa\Math\Test\Unit\Visitor\Arithmetic::case_visitor_exhaustively(): In file /usr/share/nginx/html/vendor/hoa/math/Test/Unit/Visitor/Arithmetic.php on line 98, mageekguy\atoum\asserters\phpFloat() failed: float(1610074.7993529) is not nearly equal to float(1610074.799353) with epsilon 1.0E-14 -Expected +Actual @@ -1 +1 @@ -float(1610074.799353) +float(1610074.7993529) Hoa\Protocol\Test\Unit\Protocol::case_resolve_unfold_to_non_existing_resources(): In file /usr/share/nginx/html/vendor/hoa/protocol/Test/Unit/Protocol.php on line 144, mageekguy\atoum\asserters\phpArray() failed: array(2) is not equal to array(2) -Expected +Actual @@ -3 +3 @@

There are 11 exceptions Hoa\Websocket\Test\Integration\Protocol\Rfc6455::case_server(): ~~> An exception has been thrown in file /usr/share/nginx/html/vendor/hoa/websocket/Test/Integration/Protocol/Rfc6455.php on line 121: ~~> Hoa\Websocket\Connection::_run(): (42) An exception has been thrown. We have tried to close the connection but another exception has been thrown. ~~> in /usr/share/nginx/html/vendor/hoa/websocket/Connection.php at line 486. ~~> ~~> Contains the following exceptions: ~~> ~~> • Hoa\Socket\Connection\Connection::write(): (5) Pipe is broken, cannot write data. ~~> in /usr/share/nginx/html/vendor/hoa/socket/Connection/Connection.php at line 853. ~~> ~~> • Hoa\Socket\Connection\Connection::write(): (5) Pipe is broken, cannot write data. ~~> in /usr/share/nginx/html/vendor/hoa/socket/Connection/Connection.php at line 853. Hoa\Websocket\Test\Integration\Protocol\Rfc6455::case_send_unsolicited_pong_with_payload_of_size_42(): ~~> An exception has been thrown in file /usr/share/nginx/html/vendor/hoa/websocket/Test/Integration/Protocol/Rfc6455.php on line 282: ~~> Hoa\Socket\Client::_open(): (1) Client returns an error (number 111): Connection refused while trying to join tcp://127.0.0.1:1234. ~~> in /usr/share/nginx/html/vendor/hoa/socket/Client.php at line 191. Hoa\Websocket\Test\Integration\Protocol\Rfc6455::case_send_fragmented_message(): ~~> An exception has been thrown in file /usr/share/nginx/html/vendor/hoa/websocket/Test/Integration/Protocol/Rfc6455.php on line 296: ~~> Hoa\Socket\Client::_open(): (1) Client returns an error (number 111): Connection refused while trying to join tcp://127.0.0.1:1234. ~~> in /usr/share/nginx/html/vendor/hoa/socket/Client.php at line 191. Hoa\Websocket\Test\Integration\Protocol\Rfc6455::case_send_empty_text_frame_with_an_empty_payload(): ~~> An exception has been thrown in file /usr/share/nginx/html/vendor/hoa/websocket/Test/Integration/Protocol/Rfc6455.php on line 320: ~~> Hoa\Socket\Client::_open(): (1) Client returns an error (number 111): Connection refused while trying to join tcp://127.0.0.1:1234. ~~> in /usr/share/nginx/html/vendor/hoa/socket/Client.php at line 191. Hoa\Websocket\Test\Integration\Protocol\Rfc6455::case_send_fragmented_text_frame_with_an_empty_payload(): ~~> An exception has been thrown in file /usr/share/nginx/html/vendor/hoa/websocket/Test/Integration/Protocol/Rfc6455.php on line 333: ~~> Hoa\Socket\Client::_open(): (1) Client returns an error (number 111): Connection refused while trying to join tcp://127.0.0.1:1234. ~~> in /usr/share/nginx/html/vendor/hoa/socket/Client.php at line 191. Hoa\Websocket\Test\Integration\Protocol\Rfc6455::case_send_text_frame_with_a_valid_UTF_8_payload(): ~~> An exception has been thrown in file /usr/share/nginx/html/vendor/hoa/websocket/Test/Integration/Protocol/Rfc6455.php on line 353: ~~> Hoa\Socket\Client::_open(): (1) Client returns an error (number 111): Connection refused while trying to join tcp://127.0.0.1:1234. ~~> in /usr/share/nginx/html/vendor/hoa/socket/Client.php at line 191. Hoa\Websocket\Test\Integration\Protocol\Rfc6455::case_send_text_frame_with_a_full_UTF_8_payload(): ~~> An exception has been thrown in file /usr/share/nginx/html/vendor/hoa/websocket/Test/Integration/Protocol/Rfc6455.php on line 360: ~~> Hoa\Socket\Client::_open(): (1) Client returns an error (number 111): Connection refused while trying to join tcp://127.0.0.1:1234. ~~> in /usr/share/nginx/html/vendor/hoa/socket/Client.php at line 191. Hoa\Websocket\Test\Integration\Protocol\Rfc6455::case_send_fragmented_text_frame_with_a_valid_UTF_8_payload(): ~~> An exception has been thrown in file /usr/share/nginx/html/vendor/hoa/websocket/Test/Integration/Protocol/Rfc6455.php on line 386: ~~> Hoa\Socket\Client::_open(): (1) Client returns an error (number 111): Connection refused while trying to join tcp://127.0.0.1:1234. ~~> in /usr/share/nginx/html/vendor/hoa/socket/Client.php at line 191. Hoa\Websocket\Test\Integration\Protocol\Rfc6455::case_send_fragmented_text_frame_of_1_bytes_with_a_valid_UTF_8_payload(): ~~> An exception has been thrown in file /usr/share/nginx/html/vendor/hoa/websocket/Test/Integration/Protocol/Rfc6455.php on line 405: ~~> Hoa\Socket\Client::_open(): (1) Client returns an error (number 111): Connection refused while trying to join tcp://127.0.0.1:1234. ~~> in /usr/share/nginx/html/vendor/hoa/socket/Client.php at line 191. Hoa\Websocket\Test\Integration\Protocol\Rfc6455::case_send_fragmented_text_frame_of_1_bytes_with_a_full_UTF_8_payload(): ~~> An exception has been thrown in file /usr/share/nginx/html/vendor/hoa/websocket/Test/Integration/Protocol/Rfc6455.php on line 412: ~~> Hoa\Socket\Client::_open(): (1) Client returns an error (number 111): Connection refused while trying to join tcp://127.0.0.1:1234. ~~> in /usr/share/nginx/html/vendor/hoa/socket/Client.php at line 191. Hoa\Websocket\Test\Integration\Protocol\Rfc6455::case_send_a_message_and_close(): ~~> An exception has been thrown in file /usr/share/nginx/html/vendor/hoa/websocket/Test/Integration/Protocol/Rfc6455.php on line 462: ~~> Hoa\Socket\Client::_open(): (1) Client returns an error (number 111): Connection refused while trying to join tcp://127.0.0.1:1234. ~~> in /usr/share/nginx/html/vendor/hoa/socket/Client.php at line 191.

Hywan commented 7 years ago

Hello,

How are you running the tests please? I see you have errors from hoa/math, hoa/websocket, hoa/socket, and hoa/ustring.