Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tests] Error in TestGigaChannelUnits.test_drop_silent_peer_from_channels_map #7161

Closed
drew2a opened this issue Nov 14, 2022 · 0 comments · Fixed by #7163
Closed

[Tests] Error in TestGigaChannelUnits.test_drop_silent_peer_from_channels_map #7161

drew2a opened this issue Nov 14, 2022 · 0 comments · Fixed by #7163

Comments

@drew2a
Copy link
Contributor

drew2a commented Nov 14, 2022

The error occurred here https://github.com/Tribler/tribler/actions/runs/3460811471/jobs/5778540306 in #7159

src\tribler\core\components\gigachannel\community\tests\test_gigachannel_community.py . [ 61%]
The syntax of the command is incorrect.
.........F

================================== FAILURES ===================================
________ TestGigaChannelUnits.test_drop_silent_peer_from_channels_map _________

__wrapped_mock_method__ = <function NonCallableMock.assert_not_called at 0x0000025622722550>
args = (<Mock id='2569244342352'>,), kwargs = {}, __tracebackhide__ = True
msg = "Expected 'mock' to not have been called. Called 1 times.\nCalls: [call(<ipv8.peer.Peer object at 0x0000025632D05400>)...v8.peer.Peer object at 0x0000025632D05400>\n  Full diff:\n  - ()\n  + (<ipv8.peer.Peer object at 0x0000025632D05400>,)"
__mock_self = <Mock id='2569244342352'>
actual_args = (<ipv8.peer.Peer object at 0x0000025632D05400>,)
actual_kwargs = {}
introspection = '\nArgs:\nassert (<ipv8.peer.P...25632D05400>,) == ()\n  Left contains one more item: <ipv8.peer.Peer object at 0x0000025632D05400>\n  Full diff:\n  - ()\n  + (<ipv8.peer.Peer object at 0x0000025632D05400>,)'
@py_assert2 = (), @py_assert1 = None
@py_format4 = '(<ipv8.peer.P...25632D05400>,) == ()\n~Left contains one more item: <ipv8.peer.Peer object at 0x0000025632D05400>\n~Full diff:\n~- ()\n~+ (<ipv8.peer.Peer object at 0x0000025632D05400>,)'

    def assert_wrapper(
        __wrapped_mock_method__: Callable[..., Any], *args: Any, **kwargs: Any
    ) -> None:
        __tracebackhide__ = True
        try:
>           __wrapped_mock_method__(*args, **kwargs)

c:\users\runneradmin\.virtualenvs\.venv\lib\site-packages\pytest_mock\plugin.py:444: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <Mock id='2569244342352'>

    def assert_not_called(self):
        """assert that the mock was never called.
        """
        if self.call_count != 0:
            msg = ("Expected '%s' to not have been called. Called %s times.%s"
                   % (self._mock_name or 'mock',
                      self.call_count,
                      self._calls_repr()))
>           raise AssertionError(msg)
E           AssertionError: Expected 'mock' to not have been called. Called 1 times.
E           Calls: [call(<ipv8.peer.Peer object at 0x0000025632D05400>)].

C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\unittest\mock.py:874: AssertionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant