extends TestCase ## R5: the soak samples each client process's memory once a match. A match can be ## decided during the drop (test_match covers that) and never reach play, so such a ## match is sampled at its results; otherwise the soak's leak check had too few samples. const SoakClients: GDScript = preload("res://tools/soak_clients.gd") func test_memory_is_sampled_in_play_and_at_results() -> void: assert_true(SoakClients.samples_memory_in(Match.PLAY)) assert_true(SoakClients.samples_memory_in(Match.RESULTS), "a match decided during the drop") func test_memory_is_not_sampled_before_play() -> void: for phase: int in [Match.LOBBY, Match.COUNTDOWN, Match.DROP]: assert_false(SoakClients.samples_memory_in(phase), Match.PHASE_NAMES[phase])