question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

_TestTCPForwarding test case failure on Fedora 36

See original GitHub issue

Running the asyncssh 2.9.0 test suite on Fedora 36/Rawhide yields 4 failures in TCP forwarding tests:

======================================================================
FAIL: test_forward_remote_port (tests.test_forward._TestAsyncTCPForwarding)
Test forwarding of a remote port
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.9.0/tests/util.py", line 81, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
  File "/usr/lib64/python3.10/asyncio/base_events.py", line 641, in run_until_complete
    return future.result()
  File "/builddir/build/BUILD/asyncssh-2.9.0/tests/test_forward.py", line 687, in test_forward_remote_port
    await self._check_local_connection(listener.get_port())
  File "/builddir/build/BUILD/asyncssh-2.9.0/tests/test_forward.py", line 287, in _check_local_connection
    await self._check_echo_line(reader, writer, delay=delay)
  File "/builddir/build/BUILD/asyncssh-2.9.0/tests/test_forward.py", line 243, in _check_echo_line
    self.assertEqual(line, result)
AssertionError: b'140735368876512\n' != b''
======================================================================
FAIL: test_forward_remote_specific_port (tests.test_forward._TestAsyncTCPForwarding)
Test forwarding of a specific remote port
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.9.0/tests/util.py", line 81, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
  File "/usr/lib64/python3.10/asyncio/base_events.py", line 641, in run_until_complete
    return future.result()
  File "/builddir/build/BUILD/asyncssh-2.9.0/tests/test_forward.py", line 708, in test_forward_remote_specific_port
    await self._check_local_connection(listener.get_port())
  File "/builddir/build/BUILD/asyncssh-2.9.0/tests/test_forward.py", line 287, in _check_local_connection
    await self._check_echo_line(reader, writer, delay=delay)
  File "/builddir/build/BUILD/asyncssh-2.9.0/tests/test_forward.py", line 243, in _check_echo_line
    self.assertEqual(line, result)
AssertionError: b'140735368876896\n' != b''
======================================================================
FAIL: test_forward_remote_port (tests.test_forward._TestTCPForwarding)
Test forwarding of a remote port
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.9.0/tests/util.py", line 81, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
  File "/usr/lib64/python3.10/asyncio/base_events.py", line 641, in run_until_complete
    return future.result()
  File "/builddir/build/BUILD/asyncssh-2.9.0/tests/test_forward.py", line 687, in test_forward_remote_port
    await self._check_local_connection(listener.get_port())
  File "/builddir/build/BUILD/asyncssh-2.9.0/tests/test_forward.py", line 287, in _check_local_connection
    await self._check_echo_line(reader, writer, delay=delay)
  File "/builddir/build/BUILD/asyncssh-2.9.0/tests/test_forward.py", line 243, in _check_echo_line
    self.assertEqual(line, result)
AssertionError: b'140735368879008\n' != b''
======================================================================
FAIL: test_forward_remote_specific_port (tests.test_forward._TestTCPForwarding)
Test forwarding of a specific remote port
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.9.0/tests/util.py", line 81, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
  File "/usr/lib64/python3.10/asyncio/base_events.py", line 641, in run_until_complete
    return future.result()
  File "/builddir/build/BUILD/asyncssh-2.9.0/tests/test_forward.py", line 708, in test_forward_remote_specific_port
    await self._check_local_connection(listener.get_port())
  File "/builddir/build/BUILD/asyncssh-2.9.0/tests/test_forward.py", line 287, in _check_local_connection
    await self._check_echo_line(reader, writer, delay=delay)
  File "/builddir/build/BUILD/asyncssh-2.9.0/tests/test_forward.py", line 243, in _check_echo_line
    self.assertEqual(line, result)
AssertionError: b'140735368887888\n' != b''
----------------------------------------------------------------------

cf. https://kojipkgs.fedoraproject.org//work/tasks/9919/82419919/build.log

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ronfcommented, Feb 5, 2022

Terrific - thanks so much!

I’ve gone ahead and committed it to the the “develop” branch as commit f340747.

I also made another small change to help reduce the time it takes for a couple of the other tests, and this is available as commit bbb9fef. On my Linux system here, it shaves off 4-5 minutes of testing time (from 276 seconds to 15 seconds for the full test of tests in test_forward.py).

0reactions
ronfcommented, Mar 26, 2022

This change is now available in AsyncSSH 2.10.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - _TestTCPForwarding test case failure on Fedora 36 -
Running the asyncssh 2.9.0 test suite on Fedora 36/Rawhide yields 4 failures in TCP forwarding tests:
Read more >
Can I verify failure of port forwarding using wireshark / packet ...
At this point, I'm trying to test whether the failure is on the router or the server, as both seem to be properly...
Read more >
Test if a port on a remote system is reachable (without telnet)
Bash has been able to access TCP and UDP ports for a while. From the man page: /dev/tcp/host/port If host is a valid...
Read more >
Linux IP forwarding - How to Disable/Enable using net.ipv4 ...
In this tutorial you will learn: How to check the current IP forwarding status; How to enable or disable IP forwarding; Common troubleshooting...
Read more >
Using firewalld - Fedora Docs
Firewall services are predefined rules that cover all necessary settings to ... The first method allows you to test the settings before you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found