Skip to content

Improve test_tcp_connection_with_forwarding to ensure connections are… #20

Improve test_tcp_connection_with_forwarding to ensure connections are…

Improve test_tcp_connection_with_forwarding to ensure connections are… #20

GitHub Actions / Test Results failed May 21, 2024 in 0s

1 fail, 109 pass in 54s

  7 files  ±0    7 suites  ±0   54s ⏱️ -1s
110 tests ±0  109 ✅ ±0   0 💤 ±0  1 ❌ ±0 
770 runs  ±0  719 ✅ ±0  50 💤 ±0  1 ❌ ±0 

Results for commit 71459c7. ± Comparison against earlier commit a4f72b1.

Annotations

Check warning on line 0 in test.test_fd_passing

See this annotation in the file changed.

@github-actions github-actions / Test Results

1 out of 7 runs failed: test_sending_file_descriptor_low_level (test.test_fd_passing)

test-results/junit-py312.xml [took 0s]
Raw output
AssertionError: assert ['The name :1...ervice files'] == ['got it']
  
  At index 0 diff: 'The name :1.52 was not provided by any .service files' != 'got it'
  Use -v to get more diff
@pytest.mark.asyncio
    async def test_sending_file_descriptor_low_level():
        bus1 = await MessageBus(negotiate_unix_fd=True).connect()
        bus2 = await MessageBus(negotiate_unix_fd=True).connect()
    
        fd_before = open_file()
        fd_after = None
    
        msg = Message(
            destination=bus1.unique_name,
            path="/org/test/path",
            interface="org.test.iface",
            member="SomeMember",
            body=[0],
            signature="h",
            unix_fds=[fd_before],
        )
    
        def message_handler(sent):
            nonlocal fd_after
            if sent.sender == bus2.unique_name and sent.serial == msg.serial:
                assert sent.path == msg.path
                assert sent.serial == msg.serial
                assert sent.interface == msg.interface
                assert sent.member == msg.member
                assert sent.body == [0]
                assert len(sent.unix_fds) == 1
                fd_after = sent.unix_fds[0]
                bus1.send(Message.new_method_return(sent, "s", ["got it"]))
                bus1.remove_message_handler(message_handler)
                return True
    
        bus1.add_message_handler(message_handler)
    
        reply = await bus2.call(msg)
>       assert reply.body == ["got it"]
E       AssertionError: assert ['The name :1...ervice files'] == ['got it']
E         
E         At index 0 diff: 'The name :1.52 was not provided by any .service files' != 'got it'
E         Use -v to get more diff

test/test_fd_passing.py:108: AssertionError

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Test Results

110 tests found

There are 110 tests, see "Raw output" for the full list of tests.
Raw output
test.client.test_methods ‑ test_aio_proxy_object
test.client.test_methods ‑ test_glib_proxy_object
test.client.test_properties ‑ test_aio_properties
test.client.test_properties ‑ test_glib_properties
test.client.test_signals ‑ test_signals
test.client.test_signals ‑ test_signals_with_changing_owners
test.service.test_decorators ‑ test_interface_introspection
test.service.test_decorators ‑ test_method_decorator
test.service.test_decorators_annotated ‑ test_interface_introspection
test.service.test_decorators_annotated ‑ test_method_decorator
test.service.test_export ‑ test_export_alias
test.service.test_export ‑ test_export_introspection
test.service.test_export ‑ test_export_unexport
test.service.test_methods ‑ test_methods[AsyncInterface]
test.service.test_methods ‑ test_methods[ExampleInterface]
test.service.test_properties ‑ test_property_changed_signal[AsyncInterface]
test.service.test_properties ‑ test_property_changed_signal[ExampleInterface]
test.service.test_properties ‑ test_property_methods[AsyncInterface]
test.service.test_properties ‑ test_property_methods[ExampleInterface]
test.service.test_signals ‑ test_interface_add_remove_signal
test.service.test_signals ‑ test_signals
test.service.test_standard_interfaces ‑ test_introspectable_interface
test.service.test_standard_interfaces ‑ test_object_manager
test.service.test_standard_interfaces ‑ test_peer_interface
test.service.test_standard_interfaces ‑ test_standard_interface_properties
test.test_address_parser ‑ test_valid_addresses
test.test_aio_low_level ‑ test_sending_messages_between_buses
test.test_aio_low_level ‑ test_sending_signals_between_buses
test.test_aio_low_level ‑ test_standard_interfaces
test.test_big_message ‑ test_aio_big_message
test.test_big_message ‑ test_glib_big_message
test.test_disconnect ‑ test_bus_disconnect_before_reply
test.test_disconnect ‑ test_unexpected_disconnect
test.test_fd_passing ‑ test_fn_result_to_body[Signature: "(h)"]
test.test_fd_passing ‑ test_fn_result_to_body[Signature: "(hs)"]
test.test_fd_passing ‑ test_fn_result_to_body[Signature: "(s(s(v)))"]
test.test_fd_passing ‑ test_fn_result_to_body[Signature: "a(hs)"]
test.test_fd_passing ‑ test_fn_result_to_body[Signature: "ah"0]
test.test_fd_passing ‑ test_fn_result_to_body[Signature: "ah"1]
test.test_fd_passing ‑ test_fn_result_to_body[Signature: "a{sah}"]
test.test_fd_passing ‑ test_fn_result_to_body[Signature: "a{sh}"0]
test.test_fd_passing ‑ test_fn_result_to_body[Signature: "a{sh}"1]
test.test_fd_passing ‑ test_fn_result_to_body[Signature: "a{sv}"]
test.test_fd_passing ‑ test_fn_result_to_body[Signature: "h"]
test.test_fd_passing ‑ test_fn_result_to_body[Signature: "hh"]
test.test_fd_passing ‑ test_fn_result_to_body[Signature: "hs"]
test.test_fd_passing ‑ test_fn_result_to_body[Variant with: "(hh)"]
test.test_fd_passing ‑ test_fn_result_to_body[Variant with: "(ss)"]
test.test_fd_passing ‑ test_fn_result_to_body[Variant with: "ah"]
test.test_fd_passing ‑ test_fn_result_to_body[Variant with: "h"]
test.test_fd_passing ‑ test_fn_result_to_body[Variant with: "v"]
test.test_fd_passing ‑ test_fn_result_to_body[Variant with: "va{sv}(s(s(v)))"]
test.test_fd_passing ‑ test_high_level_service_fd_passing
test.test_fd_passing ‑ test_sending_file_descriptor_low_level
test.test_fd_passing ‑ test_sending_file_descriptor_with_proxy
test.test_glib_low_level ‑ test_bus_context_manager
test.test_glib_low_level ‑ test_sending_messages_between_buses
test.test_glib_low_level ‑ test_sending_signals_between_buses
test.test_glib_low_level ‑ test_standard_interfaces
test.test_introspection ‑ test_default_interfaces
test.test_introspection ‑ test_example_introspection_from_xml
test.test_introspection ‑ test_example_introspection_to_xml
test.test_marshaller ‑ test_ay_buffer
test.test_marshaller ‑ test_marshall[item0]
test.test_marshaller ‑ test_marshall[item10]
test.test_marshaller ‑ test_marshall[item11]
test.test_marshaller ‑ test_marshall[item12]
test.test_marshaller ‑ test_marshall[item1]
test.test_marshaller ‑ test_marshall[item2]
test.test_marshaller ‑ test_marshall[item3]
test.test_marshaller ‑ test_marshall[item4]
test.test_marshaller ‑ test_marshall[item5]
test.test_marshaller ‑ test_marshall[item6]
test.test_marshaller ‑ test_marshall[item7]
test.test_marshaller ‑ test_marshall[item8]
test.test_marshaller ‑ test_marshall[item9]
test.test_marshaller ‑ test_unmarshall[item0]
test.test_marshaller ‑ test_unmarshall[item10]
test.test_marshaller ‑ test_unmarshall[item11]
test.test_marshaller ‑ test_unmarshall[item12]
test.test_marshaller ‑ test_unmarshall[item1]
test.test_marshaller ‑ test_unmarshall[item2]
test.test_marshaller ‑ test_unmarshall[item3]
test.test_marshaller ‑ test_unmarshall[item4]
test.test_marshaller ‑ test_unmarshall[item5]
test.test_marshaller ‑ test_unmarshall[item6]
test.test_marshaller ‑ test_unmarshall[item7]
test.test_marshaller ‑ test_unmarshall[item8]
test.test_marshaller ‑ test_unmarshall[item9]
test.test_marshaller ‑ test_unmarshall_can_resume
test.test_request_name ‑ test_name_requests
test.test_request_name ‑ test_request_name_glib
test.test_signature ‑ test_array
test.test_signature ‑ test_array_multiple
test.test_signature ‑ test_array_nested
test.test_signature ‑ test_array_of_structs
test.test_signature ‑ test_contains_type
test.test_signature ‑ test_dict_of_structs
test.test_signature ‑ test_dict_simple
test.test_signature ‑ test_invalid_variants
test.test_signature ‑ test_multiple_simple
test.test_signature ‑ test_nested_struct
test.test_signature ‑ test_simple
test.test_signature ‑ test_simple_struct
test.test_signature ‑ test_struct_multiple
test.test_tcp_address ‑ test_tcp_connection_with_forwarding
test.test_validators ‑ test_bus_name_validator
test.test_validators ‑ test_interface_name_validator
test.test_validators ‑ test_member_name_validator
test.test_validators ‑ test_object_path_validator