tests: the close-loop verdict counts the replies that arrive inside the close, and says where a silent browser was (#550)
The corsa 44856198702 (Windows) was red with replies [47, 0, 46] inside the close: the second browser's engine did not run for the whole close while the loop read the other two. The verdict asked every browser for a call that BEGAN and ENDED inside the close, so a single call that straddled the whole close turned a machine that did not run an engine into "the loop did not run". - the pinger records the spans of its calls and the call still waiting; the test prints the close's duration, the replies that arrived inside it, the calls inside it, and the spans that touched it; - a browser answered during the close when a reply ARRIVED while it was in flight, whenever its call began; - a browser silent inside the close is red only if the watcher saw the loop's thread inside a step of the close that waits, or if no browser answered at all; "all three answer while the removal is held" stays with `during_removal`; - unit tests: a held loop is red, one silent engine with a free loop is green (the 47/0/46 of the corsa), a straddling call counts, the client's own pinger on a scripted page; required-suites: wrapper.unit.all +6 (37 -> 43 in the verdicts file), e2e count unchanged.
This commit is contained in:
1 parent
f84f83f17d
commit
4c7faecde0
4 files changed
+186
-41
No files matched your search
@@ -14,6 +14,6 @@
|
||||
{"id": "wrapper.e2e.fakeweb", "giro": "G2", "os": ["linux", "windows"], "min_tests": 4, "exact": true, "tests": ["tests/test_fakeweb_p2_e2e.py", "tests/test_fakeweb_p4_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The fake web, offline: our browser on the hard pages (profile P2: a reused routed page reaches networkidle every time, also under a load of three other browsers; the other site is another process) and on the 17-step journey of a person (profile P4), each judged against what stock Firefox does, as tests/fakeweb/pages.json declares it. 4 = 3 + 1. Stock itself is held to that declaration, and compared with ours step by step, by scripts/run_fakeweb.py in .github/workflows/fakeweb.yml. Needs the candidate binary (STEALTHFOX_E2E_BINARY)."},
|
||||
{"id": "wrapper.e2e.fontconfig", "giro": "G2", "os": ["linux"], "min_tests": 2, "exact": true, "tests": ["tests/test_the_parent_reads_the_bundle_from_fontconfig_s_cache_linux_e2e.py"], "marker": "e2e", "needs_root": false, "linux_only": "Fontconfig exists only on Linux: the parent of the engine shows <GRE>/fonts to it (FcConfigAppFontAddDir) to rebuild a font from a path and a face index. On Windows DirectWrite opens the file from its path, with no folder to scan and no cache to read, so this test has no Windows counterpart.", "note": "2 = (1) the stand-in that runs the engine under strace stays in the engine's place, as the core launches it (the leader of a process group of its own): a fake engine with a child, no browser; the process the launcher holds lives as long as the fake engine, and the group killed holds strace and the child (the stand-in that exec'd setsid forked and exited 0 at once: candidate 44161687675); (2) the warm launch of the parent reads the bundle from fontconfig's cache and does not scan it again (from firefox-66, engine_at_least). Two launches under strace with the same XDG_CACHE_HOME of the test, the first cold and the second warm: the cold parent opens every font file of <GRE>/fonts (the folder as the disk lists it) before any page and fontconfig writes its cache; the warm parent does not open every one of them, and it opens a *.cache-* file of fontconfig (a few files are opened to be used, so the verdict asks about the whole folder, as a scan does). Scan and drawing are told apart by position: only what the parent opens before the first page counts (the opens that draw are written as after_startup). Evidence in RUNNER_TEMP/invpw-evidence/fontconfig-cache: the interval and the number of opens of the bundle, the names of the files of the bundle each launch opened before the first page, the size of the cache file, the VmRSS of the parent after about:blank and after a page with every family, and a third launch with gfx.bundled-fonts.activate=0 (the behaviour before), which is evidence only. Needs strace on the runner: without it both are red, not skipped. No threshold."},
|
||||
{"id": "wrapper.unit.compositing", "giro": "G1", "os": ["linux", "windows"], "min_tests": 30, "exact": true, "tests": ["tests/test_the_page_bytes_reference_compares_decoded_pixels.py"], "marker": "unit", "needs_root": false, "note": "The helpers of wrapper.e2e.compositing on known inputs, no browser: the PNG compared on decoded pixels (another deBG chunk and compression are the same, one pixel is not, every scanline filter), the comparison with a reference (changed, missing and extra keys named, the entry to record), the type of an engine process, an engine process known by its executable and not by the name it gives itself (Linux), and the CPU of a window, and the shape of the committed Windows reference, and the box cut out of a screenshot (its pixels, a box outside the picture refused, written as a PNG and read back, two boxes told apart by a pixel that is named, the pixels that are not grey)."},
|
||||
{"id": "wrapper.unit.all.linux", "giro": "G1", "os": ["linux"], "min_tests": 2162, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_verdict.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_refusal_is_declared.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_every_suite_runs_on_linux_and_windows.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_report.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fixtures_name_why_the_package_is_missing.py", "tests/test_fork.py", "tests/test_frame_dispatch.py", "tests/test_geoip_used.py", "tests/test_goto_follows_the_base_url.py", "tests/test_hook_wiring.py", "tests/test_imports.py", "tests/test_integration.py", "tests/test_juggler_event_buffer.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py", "tests/test_juggler_lives_in_the_core.py", "tests/test_juggler_posix_pipe.py", "tests/test_juggler_transport.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_launch_counters_run_on_github.py", "tests/test_launcher_config.py", "tests/test_launcher_helpers.py", "tests/test_motion_never_hides_a_programming_error.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_no_event_of_any_family_is_lost_by_the_hand_over.py", "tests/test_no_legacy_in_the_wrapper.py", "tests/test_no_override_leaves_the_persona_scheme.py", "tests/test_no_thread_is_started_on_the_reader.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pin.py", "tests/test_pin_dicts_are_valid.py", "tests/test_pinning_doc.py", "tests/test_pointer_server.py", "tests/test_popup_adoption_unit.py", "tests/test_prefs_composition_arm.py", "tests/test_preload_newtab_is_written_only_when_asked.py", "tests/test_protocol_names_are_declared.py", "tests/test_proxy_reaches_the_browser.py", "tests/test_publish_gate_wiring.py", "tests/teLine truncated
|
||||
{"id": "wrapper.unit.all.windows", "giro": "G1", "os": ["windows"], "min_tests": 2163, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_verdict.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_refusal_is_declared.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_every_suite_runs_on_linux_and_windows.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_report.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fixtures_name_why_the_package_is_missing.py", "tests/test_fork.py", "tests/test_frame_dispatch.py", "tests/test_geoip_used.py", "tests/test_goto_follows_the_base_url.py", "tests/test_hook_wiring.py", "tests/test_imports.py", "tests/test_integration.py", "tests/test_juggler_event_buffer.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py", "tests/test_juggler_lives_in_the_core.py", "tests/test_juggler_transport.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_launch_counters_run_on_github.py", "tests/test_launcher_config.py", "tests/test_launcher_helpers.py", "tests/test_motion_never_hides_a_programming_error.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_no_event_of_any_family_is_lost_by_the_hand_over.py", "tests/test_no_legacy_in_the_wrapper.py", "tests/test_no_override_leaves_the_persona_scheme.py", "tests/test_no_thread_is_started_on_the_reader.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pin.py", "tests/test_pin_dicts_are_valid.py", "tests/test_pinning_doc.py", "tests/test_pointer_server.py", "tests/test_popup_adoption_unit.py", "tests/test_prefs_composition_arm.py", "tests/test_prefs_composition_arm_on_windows.py", "tests/test_preload_newtab_is_written_only_when_asked.py", "tests/test_protocol_names_are_declared.py", "tests/test_proxy_reaches_the_browser.py", "tests/test_publish_gate_wirLine truncated
|
||||
{"id": "wrapper.unit.all.linux", "giro": "G1", "os": ["linux"], "min_tests": 2168, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_verdict.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_refusal_is_declared.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_every_suite_runs_on_linux_and_windows.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_report.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fixtures_name_why_the_package_is_missing.py", "tests/test_fork.py", "tests/test_frame_dispatch.py", "tests/test_geoip_used.py", "tests/test_goto_follows_the_base_url.py", "tests/test_hook_wiring.py", "tests/test_imports.py", "tests/test_integration.py", "tests/test_juggler_event_buffer.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py", "tests/test_juggler_lives_in_the_core.py", "tests/test_juggler_posix_pipe.py", "tests/test_juggler_transport.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_launch_counters_run_on_github.py", "tests/test_launcher_config.py", "tests/test_launcher_helpers.py", "tests/test_motion_never_hides_a_programming_error.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_no_event_of_any_family_is_lost_by_the_hand_over.py", "tests/test_no_legacy_in_the_wrapper.py", "tests/test_no_override_leaves_the_persona_scheme.py", "tests/test_no_thread_is_started_on_the_reader.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pin.py", "tests/test_pin_dicts_are_valid.py", "tests/test_pinning_doc.py", "tests/test_pointer_server.py", "tests/test_popup_adoption_unit.py", "tests/test_prefs_composition_arm.py", "tests/test_preload_newtab_is_written_only_when_asked.py", "tests/test_protocol_names_are_declared.py", "tests/test_proxy_reaches_the_browser.py", "tests/test_publish_gate_wiring.py", "tests/teLine truncated
|
||||
{"id": "wrapper.unit.all.windows", "giro": "G1", "os": ["windows"], "min_tests": 2169, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_verdict.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_refusal_is_declared.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_every_suite_runs_on_linux_and_windows.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_report.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fixtures_name_why_the_package_is_missing.py", "tests/test_fork.py", "tests/test_frame_dispatch.py", "tests/test_geoip_used.py", "tests/test_goto_follows_the_base_url.py", "tests/test_hook_wiring.py", "tests/test_imports.py", "tests/test_integration.py", "tests/test_juggler_event_buffer.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py", "tests/test_juggler_lives_in_the_core.py", "tests/test_juggler_transport.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_launch_counters_run_on_github.py", "tests/test_launcher_config.py", "tests/test_launcher_helpers.py", "tests/test_motion_never_hides_a_programming_error.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_no_event_of_any_family_is_lost_by_the_hand_over.py", "tests/test_no_legacy_in_the_wrapper.py", "tests/test_no_override_leaves_the_persona_scheme.py", "tests/test_no_thread_is_started_on_the_reader.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pin.py", "tests/test_pin_dicts_are_valid.py", "tests/test_pinning_doc.py", "tests/test_pointer_server.py", "tests/test_popup_adoption_unit.py", "tests/test_prefs_composition_arm.py", "tests/test_prefs_composition_arm_on_windows.py", "tests/test_preload_newtab_is_written_only_when_asked.py", "tests/test_protocol_names_are_declared.py", "tests/test_proxy_reaches_the_browser.py", "tests/test_publish_gate_wirLine truncated
|
||||
]
|
||||
@@ -2,8 +2,8 @@
|
||||
unit test feeds them the red case and the green case without a browser).
|
||||
|
||||
None of them reads how long something took: a loop that is held is told by WHERE the thread of the loop was (inside a blocking step of
|
||||
the close), a browser that keeps answering is told by the ORDER of the events (a call that began and ended while the close was in
|
||||
flight, and answers that came while the removal of the profile was held), and the removal of the profile is told by WHICH THREAD
|
||||
the close), a browser that keeps answering is told by the ORDER of the events (a reply that arrived while the close was in flight,
|
||||
and answers that came while the removal of the profile was held), and the removal of the profile is told by WHICH THREAD
|
||||
reached it (the reaper's or its continuation's, never the loop's nor one of the close's) and by the order of the close's return and
|
||||
the release of the hold. A machine that is slow stretches every duration and changes none of these.
|
||||
|
||||
@@ -85,21 +85,35 @@ def charged_more_than_ran_problem(held: float, busy_run: float) -> Optional[str]
|
||||
"its selector (the machine did not schedule it) was counted as held" % (held * 1000, busy_run * 1000))
|
||||
|
||||
|
||||
def others_answered_problem(others: Sequence[dict], gate: dict) -> Optional[str]:
|
||||
def others_answered_problem(others: Sequence[dict], gate: dict, loop_inside: Dict[str, dict]) -> Optional[str]:
|
||||
"""What is wrong with the way the other browsers answered while the first one closed, or None.
|
||||
|
||||
``others`` has one record per other browser: ``inside`` is the calls that began AFTER the close began and ended BEFORE it ended
|
||||
(a call that was answered during the close, in the order of the events, not by how long it took), ``during_removal`` the calls
|
||||
that began after the removal of the closing browser's profile was reached and ended while it was still held. ``gate`` says how that
|
||||
hold ended: ``reached`` (the removal ran), ``released_by``: ``answered`` (the close had returned and every other browser had
|
||||
answered a call that began after the removal was reached: the loop was free while the removal waited) or ``deadline`` (they had not,
|
||||
in 30 s: the loop could not run while the removal was waiting, which is a removal made on the loop's thread)."""
|
||||
``others`` has one record per other browser: ``answered`` is the replies that ARRIVED while the close was in flight, whenever the
|
||||
call began (a reply read during the close is proof that the loop ran then; a call that began a moment before the close and ended
|
||||
in it is one), ``inside`` the calls that began AND ended in it (printed, not judged), ``during_removal`` the calls that began after
|
||||
the removal of the closing browser's profile was reached and ended while it was still held. ``gate`` says how that hold ended:
|
||||
``reached`` (the removal ran), ``released_by``: ``answered`` (the close had returned and every other browser had answered a call
|
||||
that began after the removal was reached: the loop was free while the removal waited) or ``deadline`` (they had not, in 30 s: the
|
||||
loop could not run while the removal was waiting, which is a removal made on the loop's thread). ``loop_inside`` is what the
|
||||
watcher saw of the loop's thread during the close (see the head of this file).
|
||||
|
||||
A browser that answered nothing inside the close is the loop's fault only if the loop was HELD: the watcher saw its thread inside
|
||||
a step of the close that waits, or no browser answered at all (nothing shows that the loop ran). One engine that did not answer
|
||||
while the others did, and the loop was seen free, is a browser the machine did not run: the removal's hold below still asks every
|
||||
browser to answer, once the close is over."""
|
||||
if len(others) != 3:
|
||||
return "the client followed %d other browsers instead of 3: %r" % (len(others), others)
|
||||
silent = [i for i, r in enumerate(others) if r["inside"] < 1]
|
||||
silent = [i for i, r in enumerate(others) if r["answered"] < 1]
|
||||
if silent:
|
||||
return ("the other browsers %s did not answer a single call that began and ended inside the close (calls inside it, per "
|
||||
"browser: %s): the loop that serves them did not run during the close" % (silent, [r["inside"] for r in others]))
|
||||
held = blocked_by(loop_inside)
|
||||
counts = [r["answered"] for r in others]
|
||||
if held:
|
||||
return ("the other browsers %s did not answer a single call inside the close (replies that arrived inside it, per "
|
||||
"browser: %s) and the watcher saw the loop's thread inside %s: the loop that serves them did not run during "
|
||||
"the close" % (silent, counts, held))
|
||||
if len(silent) == len(others):
|
||||
return ("no other browser answered a single call inside the close (replies that arrived inside it, per browser: %s): "
|
||||
"nothing shows that the loop ran during the close" % counts)
|
||||
if gate.get("reached") and gate.get("released_by") != "answered":
|
||||
return ("the removal of the profile was held until every other browser answered, and they did not (%s): the loop that "
|
||||
"serves them could not run while the removal waited, so the removal ran on it (answers during the removal, per "
|
||||
|
||||
@@ -21,8 +21,11 @@ that could not see a held loop does not pass the test for nothing.
|
||||
|
||||
Nothing here is judged by how long it took (that is a verdict on the runner: a loop that a starved machine runs late is late without
|
||||
a defect). The loop is held when its thread was SEEN inside a step of the close that waits (`_close_loop_verdicts.blocked_by`), and the
|
||||
other browsers keep answering when, in the order of the events, a call of each began and ended while the close was in flight and
|
||||
while the removal of the closing browser's profile was held.
|
||||
other browsers keep answering when, in the order of the events, the loop read replies of them while the close was in flight (a reply
|
||||
that ARRIVED inside it counts, whenever its call began: a call that straddles the start of the close is a call the loop answered) and
|
||||
every one of them answered while the removal of the closing browser's profile was held. A browser that is silent inside the close
|
||||
while the others answer and the loop was never seen held is an engine the machine did not run (the printed spans say where it was):
|
||||
it is red only with a loop seen held, or with every browser silent (nothing shows that the loop ran).
|
||||
|
||||
THE REMOVAL OF THE PROFILE IS NOT THE CLOSE'S. `close()` returns once the browser has exited; the removal of its session's directories
|
||||
is handed to the launch's reaper (`invisible_core.process.Reaper.then`) and runs on the thread that ends the tree, or on the
|
||||
@@ -211,14 +214,22 @@ _CLIENT = textwrap.dedent("""
|
||||
|
||||
|
||||
async def pinger(page, record, closing, gate, records):
|
||||
# A call counts as answered DURING the close when it began after the close began and ended before it ended, and as answered
|
||||
# DURING THE REMOVAL when it began after the removal of the profile was reached and ended while it was still held: the order
|
||||
# of the events, not how long it took. The close has returned by then or not: the removal is the reaper's, not the close's.
|
||||
# A reply counts as ARRIVED DURING the close (`answered`) when the close was in flight at the moment the loop read it, whenever
|
||||
# its call began: that is what shows the loop ran then. `inside` counts the calls that began AND ended in the close (printed,
|
||||
# not judged); `spans` keeps (began, ended) of every call and `open_since` the call that is still waiting, to say WHERE a silent
|
||||
# browser was (its engine did not reply, or the loop did not read it). A call is answered DURING THE REMOVAL when it began after
|
||||
# the removal of the profile was reached and ended while it was still held. The order of the events, not how long it took. The
|
||||
# close has returned by then or not: the removal is the reaper's, not the close's.
|
||||
while not record["stop"]:
|
||||
while_closing = closing.is_set()
|
||||
started = time.monotonic()
|
||||
started = record["open_since"] = time.monotonic()
|
||||
await page.evaluate("1 + 1")
|
||||
took = time.monotonic() - started
|
||||
record["open_since"] = None
|
||||
ended = time.monotonic()
|
||||
took = ended - started
|
||||
record["spans"].append((started, ended))
|
||||
if closing.is_set():
|
||||
record["answered"] += 1
|
||||
if while_closing and closing.is_set():
|
||||
record["inside"] += 1
|
||||
record["slowest"] = max(record["slowest"], took) # printed, never judged
|
||||
@@ -322,7 +333,7 @@ _CLIENT = textwrap.dedent("""
|
||||
records = []
|
||||
tasks = []
|
||||
for page in pages[1:]:
|
||||
record = {"stop": False, "inside": 0, "during_removal": 0, "slowest": 0.0}
|
||||
record = {"stop": False, "answered": 0, "inside": 0, "during_removal": 0, "slowest": 0.0, "open_since": None, "spans": []}
|
||||
records.append(record)
|
||||
tasks.append(asyncio.create_task(pinger(page, record, closing, gate, records)))
|
||||
await asyncio.sleep(0.5)
|
||||
@@ -333,9 +344,12 @@ _CLIENT = textwrap.dedent("""
|
||||
closing.set()
|
||||
started = time.monotonic()
|
||||
await sessions[0].__aexit__(None, None, None)
|
||||
took = time.monotonic() - started
|
||||
returned = time.monotonic()
|
||||
took = returned - started
|
||||
with gate_lock:
|
||||
gate["order"].append("close_returned")
|
||||
# Where each other browser was when the close returned: the age of the call it was still waiting for, if any.
|
||||
open_for = [round(returned - r["open_since"], 3) if r["open_since"] is not None else 0.0 for r in records]
|
||||
closing.clear()
|
||||
await instrument.finish()
|
||||
report = instrument.report()
|
||||
@@ -360,7 +374,12 @@ _CLIENT = textwrap.dedent("""
|
||||
"took": took, "launched": launched,
|
||||
"control": control.report(),
|
||||
"unscheduled": unscheduled.report(),
|
||||
"others": [{"inside": r["inside"], "during_removal": r["during_removal"], "slowest": r["slowest"]} for r in records],
|
||||
"others": [{"answered": r["answered"], "inside": r["inside"], "during_removal": r["during_removal"],
|
||||
"slowest": r["slowest"], "open_for": open_for[i],
|
||||
# the calls that touched the close, as (began, ended) in seconds from the close's start; the first eight
|
||||
"spans": [[round(a - started, 3), round(b - started, 3)] for a, b in r["spans"]
|
||||
if b >= started and a <= returned][:8]}
|
||||
for i, r in enumerate(records)],
|
||||
"gate": {"reached": gate["since"] is not None, "released_by": gate["released_by"], "order": gate["order"],
|
||||
"removal": gate["removal"]},
|
||||
"ended": {"reaped": reaped, "profile_gone": gone},
|
||||
@@ -492,12 +511,18 @@ def test_no_blocking_step_of_the_close_runs_on_the_loop_s_thread(report):
|
||||
|
||||
|
||||
def test_the_other_three_keep_answering_during_the_close(report):
|
||||
"""Each of the other three browsers answers a call that began and ended while the first one closes, the removal of the first one's
|
||||
profile is held until every one of them has answered, and the three are alive after. The order of the events decides; the
|
||||
seconds a call took are printed."""
|
||||
problem = others_answered_problem(report["others"], report["gate"])
|
||||
assert problem is None, "%s\n(printed, not judged: the slowest call of each browser inside the close, in s: %s)" % (
|
||||
problem, [round(r["slowest"], 3) for r in report["others"]])
|
||||
"""The loop reads replies of the other three browsers while the first one closes (a reply that ARRIVED inside the close counts,
|
||||
whenever its call began), the removal of the first one's profile is held until every one of them has answered, and the three are
|
||||
alive after. A browser whose engine did not reply during the close while the others did, and the loop was never seen held, is a
|
||||
browser the machine did not run: it is the removal's hold that asks every one of them to answer afterwards. The order of the
|
||||
events decides; the seconds are printed."""
|
||||
problem = others_answered_problem(report["others"], report["gate"], report["inside"])
|
||||
assert problem is None, (
|
||||
"%s\n(printed, not judged: the close took %.0f ms; per browser: replies that arrived inside the close, calls that began and "
|
||||
"ended inside it, the slowest of those in s, the age in s of the call still waiting when the close returned, and the calls that "
|
||||
"touched the close as (began, ended) in s from its start: %s)" % (
|
||||
problem, report["took"] * 1000,
|
||||
[(r["answered"], r["inside"], round(r["slowest"], 3), r["open_for"], r["spans"]) for r in report["others"]]))
|
||||
assert report["texts"] == ["browser 1", "browser 2", "browser 3"]
|
||||
|
||||
|
||||
|
||||
@@ -267,43 +267,149 @@ def test_what_the_loop_runs_between_two_awaits_of_the_close_is_not_a_blocking_st
|
||||
# the other browsers
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
def _others(inside=(2, 2, 2), removal=(1, 1, 1)):
|
||||
return [{"inside": a, "during_removal": b, "slowest": 9.9} for a, b in zip(inside, removal)]
|
||||
#: What the watcher saw of the loop's thread during a close: nothing of a step that waits (a loop that was free), or the transport's
|
||||
#: `shutdown` on it (a loop that was held: the defect).
|
||||
_LOOP_FREE = {}
|
||||
_LOOP_HELD = {_CLOSE_STEP_FILE + ":shutdown": {"n": 3, "stack": [_CLOSE_STEP_FILE + ":shutdown"]}}
|
||||
_ANSWERED = {"reached": True, "released_by": "answered"}
|
||||
|
||||
|
||||
def _others(answered=(2, 2, 2), removal=(1, 1, 1), inside=None):
|
||||
inside = answered if inside is None else inside
|
||||
return [{"answered": a, "inside": i, "during_removal": b, "slowest": 9.9, "open_for": 0.0, "spans": []}
|
||||
for a, i, b in zip(answered, inside, removal)]
|
||||
|
||||
|
||||
def test_the_others_that_answered_inside_the_close_and_during_the_removal_are_green_whatever_the_seconds_they_took():
|
||||
# The calls took 9.9 s each in these records: the seconds decide nothing.
|
||||
assert verdicts.others_answered_problem(_others(), {"reached": True, "released_by": "answered"}) is None
|
||||
assert verdicts.others_answered_problem(_others(), _ANSWERED, _LOOP_FREE) is None
|
||||
assert verdicts.others_answered_problem(_others(), _ANSWERED, _LOOP_HELD) is None
|
||||
|
||||
|
||||
def test_a_browser_that_answered_nothing_inside_the_close_is_red():
|
||||
problem = verdicts.others_answered_problem(_others(inside=(4, 0, 4)), {"reached": True, "released_by": "answered"})
|
||||
assert problem is not None and "[1]" in problem
|
||||
def test_a_browser_that_answered_nothing_inside_the_close_while_the_loop_was_held_is_red():
|
||||
# The defect: the close on the loop's thread. The watcher saw it inside the step, and one browser has no reply inside the close.
|
||||
problem = verdicts.others_answered_problem(_others(answered=(4, 0, 4)), _ANSWERED, _LOOP_HELD)
|
||||
assert problem is not None and "[1]" in problem and _CLOSE_STEP_FILE + ":shutdown" in problem
|
||||
|
||||
|
||||
def test_every_browser_silent_inside_the_close_is_red_even_when_the_watcher_saw_nothing():
|
||||
# Nothing shows that the loop ran: a loop held in a step the watcher does not know is the same as no reply at all.
|
||||
problem = verdicts.others_answered_problem(_others(answered=(0, 0, 0)), _ANSWERED, _LOOP_FREE)
|
||||
assert problem is not None and "no other browser answered" in problem
|
||||
|
||||
|
||||
def test_one_engine_silent_inside_the_close_while_the_loop_was_free_is_green():
|
||||
# The rosso of the corsa 44856198702 (Windows): replies [47, 0, 46] and the loop never seen inside a step of the close. The
|
||||
# second browser's engine did not run; the loop read the others' replies. The removal's hold still asks it to answer afterwards.
|
||||
assert verdicts.others_answered_problem(_others(answered=(47, 0, 46)), _ANSWERED, _LOOP_FREE) is None
|
||||
|
||||
|
||||
def test_a_reply_that_arrived_inside_the_close_counts_whenever_its_call_began():
|
||||
# A call that began just before the close and was read by the loop inside it: no call began AND ended inside (`inside` 0), one
|
||||
# reply arrived inside (`answered` 1), and that is a browser that answered.
|
||||
assert verdicts.others_answered_problem(_others(answered=(1, 1, 1), inside=(0, 0, 0)), _ANSWERED, _LOOP_HELD) is None
|
||||
|
||||
|
||||
def test_a_removal_that_went_on_only_at_its_deadline_is_red():
|
||||
# The loop could not run while the removal waited for the answers: the removal ran on it. Calls that began and ended inside the
|
||||
# close after the deadline do not make it green.
|
||||
problem = verdicts.others_answered_problem(_others(inside=(5, 5, 5), removal=(0, 0, 0)), {"reached": True, "released_by": "deadline"})
|
||||
problem = verdicts.others_answered_problem(_others(removal=(0, 0, 0)), {"reached": True, "released_by": "deadline"}, _LOOP_FREE)
|
||||
assert problem is not None and "deadline" in problem
|
||||
|
||||
|
||||
def test_the_hold_of_the_removal_is_not_asked_when_no_removal_was_reached():
|
||||
# Another verdict says the removal must have been reached (`removal_never_reached_problem`); this one still asks for the calls
|
||||
# inside the close.
|
||||
assert verdicts.others_answered_problem(_others(), {"reached": False, "released_by": None}) is None
|
||||
assert verdicts.others_answered_problem(_others(inside=(1, 1, 0)), {"reached": False, "released_by": None}) is not None
|
||||
assert verdicts.others_answered_problem(_others(), {"reached": False, "released_by": None}, _LOOP_FREE) is None
|
||||
assert verdicts.others_answered_problem(_others(answered=(1, 1, 0)), {"reached": False, "released_by": None}, _LOOP_HELD) is not None
|
||||
assert verdicts.others_answered_problem(_others(answered=(1, 1, 0)), {"reached": False, "released_by": None}, _LOOP_FREE) is None
|
||||
|
||||
|
||||
def test_fewer_than_three_other_browsers_followed_is_red():
|
||||
assert verdicts.others_answered_problem(_others()[:2], {"reached": True, "released_by": "answered"}) is not None
|
||||
assert verdicts.others_answered_problem(_others()[:2], _ANSWERED, _LOOP_FREE) is not None
|
||||
|
||||
|
||||
def test_a_browser_that_answered_nothing_while_the_removal_was_held_is_red():
|
||||
problem = verdicts.others_answered_problem(_others(removal=(2, 0, 1)), {"reached": True, "released_by": "answered"})
|
||||
problem = verdicts.others_answered_problem(_others(removal=(2, 0, 1)), _ANSWERED, _LOOP_FREE)
|
||||
assert problem is not None and "[1]" in problem
|
||||
|
||||
|
||||
def _pinger():
|
||||
"""`pinger` of the client, exactly as the e2e writes it."""
|
||||
text = e2e._CLIENT
|
||||
source = text[text.index("async def pinger"):text.index("def hold_the_loop")]
|
||||
scope = {"asyncio": asyncio, "time": time}
|
||||
exec(compile(source, "client_pinger", "exec"), scope)
|
||||
return scope["pinger"]
|
||||
|
||||
|
||||
class _Page:
|
||||
"""A page whose `evaluate` is answered when the test says so: ``replies`` is a list of the events that the successive calls wait for
|
||||
(the calls after the last wait for nothing and never return)."""
|
||||
|
||||
def __init__(self, replies):
|
||||
self.replies = list(replies)
|
||||
|
||||
async def evaluate(self, expression):
|
||||
if self.replies:
|
||||
await self.replies.pop(0).wait()
|
||||
else:
|
||||
await asyncio.Event().wait()
|
||||
|
||||
|
||||
def _run_the_pinger(script):
|
||||
"""Run the client's pinger on a page of ``script(closing, replies)``: it makes the order of the events happen. Returns the record."""
|
||||
async def main():
|
||||
closing, gate = asyncio.Event(), {"since": None, "released_by": None}
|
||||
record = {"stop": False, "answered": 0, "inside": 0, "during_removal": 0, "slowest": 0.0, "open_since": None, "spans": []}
|
||||
replies = [asyncio.Event() for _ in range(3)]
|
||||
task = asyncio.create_task(_pinger()(_Page(replies), record, closing, gate, [record]))
|
||||
await asyncio.sleep(0.01)
|
||||
await script(closing, replies)
|
||||
await asyncio.sleep(0.01)
|
||||
record["stop"] = True
|
||||
task.cancel()
|
||||
return record
|
||||
return asyncio.run(main())
|
||||
|
||||
|
||||
def test_a_call_that_began_before_the_close_and_was_read_inside_it_is_an_answer_but_not_a_call_inside():
|
||||
async def script(closing, replies):
|
||||
closing.set() # the first call is waiting: it began before the close
|
||||
replies[0].set() # and the loop reads its reply inside the close
|
||||
await asyncio.sleep(0.01)
|
||||
record = _run_the_pinger(script)
|
||||
assert record["answered"] == 1 and record["inside"] == 0
|
||||
assert verdicts.others_answered_problem(
|
||||
[dict(record, during_removal=1)] * 3, _ANSWERED, _LOOP_HELD) is None
|
||||
|
||||
|
||||
def test_a_call_that_waited_through_the_whole_close_is_silent_and_says_where_it_was():
|
||||
async def script(closing, replies):
|
||||
closing.set()
|
||||
await asyncio.sleep(0.01)
|
||||
closing.clear() # the close returned and the reply has not come: the engine did not run
|
||||
record = _run_the_pinger(script)
|
||||
assert record["answered"] == 0 and record["inside"] == 0
|
||||
assert record["open_since"] is not None and record["spans"] == []
|
||||
# With the loop free this browser is not the close's doing (the others answered); with the loop held it is.
|
||||
others = [dict(record, answered=0, during_removal=1), _others()[0], _others()[2]]
|
||||
assert verdicts.others_answered_problem(others, _ANSWERED, _LOOP_FREE) is None
|
||||
assert verdicts.others_answered_problem(others, _ANSWERED, _LOOP_HELD) is not None
|
||||
|
||||
|
||||
def test_a_call_that_began_and_ended_inside_the_close_is_an_answer_and_a_call_inside():
|
||||
async def script(closing, replies):
|
||||
replies[0].set()
|
||||
await asyncio.sleep(0.01) # the first call ended before the close: not counted
|
||||
closing.set()
|
||||
replies[1].set() # the second began after the close's start and ended inside it
|
||||
await asyncio.sleep(0.04)
|
||||
record = _run_the_pinger(script)
|
||||
assert record["answered"] >= 1 and record["inside"] >= 1
|
||||
assert len(record["spans"]) >= 2
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# the removal of the profile that the client holds still: WHO reaches it
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user