perf(test): reduce property test iterations from 15 to 10

- 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.
This commit is contained in:
Graham McIntire 2026-03-05 15:09:54 -06:00
parent 74e7a8b774
commit b21f913078
No known key found for this signature in database

View file

@ -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)