yunstanford / pytest-sanic

a Pytest Plugin for Sanic.
http://pytest-sanic.readthedocs.io/en/latest
Apache License 2.0
135 stars 21 forks source link

Test Hang And Timeout Error! #6

Closed jonahfang closed 7 years ago

jonahfang commented 7 years ago

I have upgraded to Sanic 0.6.0 and pytest-sanic 0.1.3, when I run the old unit test, it just hang and show timeout errror like :

self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fut = <Future finished exception=TimeoutError(110, "Connect call failed ('202.102.110.204', 6379)")>
sock = <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=2049, proto=6>, address = ('202.102.110.204', 6379)

    def _sock_connect_cb(self, fut, sock, address):
        if fut.cancelled():
            return

        try:
            err = sock.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR)
            if err != 0:
                # Jump to any except clause below.
>               raise OSError(err, 'Connect call failed %s' % (address,))
E               TimeoutError: [Errno 110] Connect call failed ('202.102.110.204', 6379)

/usr/local/lib/python3.6/asyncio/selector_events.py:481: TimeoutError
1 error in 127.89 seconds
jonahfang commented 7 years ago

sorry ,it is not related with this project.