The deferred load via send(self(), :load_profiles) is fine in dev/prod where SNMP polling starts well after boot, but it races with tests that exercise discovery immediately after the GenServer starts. With an empty ETS table, match_profile/2 returns nil and discovery falls back to the Base profile, breaking tests that rely on YAML-profile-derived manufacturer strings. |
||
|---|---|---|
| .. | ||
| mix/tasks | ||
| snmpkit | ||
| towerops | ||
| towerops_web | ||
| snmp_lib.ex | ||
| snmp_mgr.ex | ||
| snmpkit.ex | ||
| towerops.ex | ||
| towerops_native.ex | ||
| towerops_web.ex | ||