Description
BasicNetworkTestSuite was never covered by the summer 2024 refactor campaign. It holds 13 asserts in 7 tests across 303 lines, six of which are addTestAsync().
Two tests carry three asserts each across 62 lines: network_send_packet_test and network_send_packet_handshake_test.
This suite should be split conservatively. Every async test here opens a socket, performs a handshake and tears the connection down. Splitting one into three means three full connect/handshake cycles instead of one, which both slows the suite and increases the chance of flakiness from the local test server. The asserts within these facts are also largely sequential — the packet must be sent before the response can be checked.
The realistic outcome may be that only one or two asserts are genuinely independent and worth lifting out. That is a legitimate result and should be recorded on the issue rather than forcing a split.
Script Name
BasicNetworkTestSuite
Steps To The Task
Description
BasicNetworkTestSuitewas never covered by the summer 2024 refactor campaign. It holds 13 asserts in 7 tests across 303 lines, six of which areaddTestAsync().Two tests carry three asserts each across 62 lines:
network_send_packet_testandnetwork_send_packet_handshake_test.This suite should be split conservatively. Every async test here opens a socket, performs a handshake and tears the connection down. Splitting one into three means three full connect/handshake cycles instead of one, which both slows the suite and increases the chance of flakiness from the local test server. The asserts within these facts are also largely sequential — the packet must be sent before the response can be checked.
The realistic outcome may be that only one or two asserts are genuinely independent and worth lifting out. That is a legitimate result and should be recorded on the issue rather than forcing a split.
Script Name
BasicNetworkTestSuite
Steps To The Task
network_send_packet_testandnetwork_send_packet_handshake_testand identify which asserts are independent of the connection sequence<original_name> #N