From b21f913078bc95f140fe43c97d3c1eae8798afd6 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Thu, 5 Mar 2026 15:09:54 -0600 Subject: [PATCH] perf(test): reduce property test iterations from 15 to 10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - SNMP port property test: 339ms → ~230ms (32% faster) - Organization name property test: 269ms → ~180ms (33% faster) - Community string property test: 247ms → ~165ms (33% faster) All three tests removed from top 20 slowest tests. --- test/towerops_web/live/org/settings_live_property_test.exs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/towerops_web/live/org/settings_live_property_test.exs b/test/towerops_web/live/org/settings_live_property_test.exs index 3d7906b5..343ee587 100644 --- a/test/towerops_web/live/org/settings_live_property_test.exs +++ b/test/towerops_web/live/org/settings_live_property_test.exs @@ -54,7 +54,7 @@ defmodule ToweropsWeb.Org.SettingsLivePropertyTest do user: user, organization: org } do - check all(name <- string(:printable, max_length: 200), max_runs: 15) do + check all(name <- string(:printable, max_length: 200), max_runs: 10) do {:ok, view, _html} = conn |> log_in_user(user) @@ -77,7 +77,7 @@ defmodule ToweropsWeb.Org.SettingsLivePropertyTest do user: user, organization: org } do - check all(port <- one_of([integer(-100..100_000), constant(0)]), max_runs: 15) do + check all(port <- one_of([integer(-100..100_000), constant(0)]), max_runs: 10) do {:ok, view, _html} = conn |> log_in_user(user) @@ -98,7 +98,7 @@ defmodule ToweropsWeb.Org.SettingsLivePropertyTest do user: user, organization: org } do - check all(community <- string(:printable, max_length: 100), max_runs: 15) do + check all(community <- string(:printable, max_length: 100), max_runs: 10) do {:ok, view, _html} = conn |> log_in_user(user)