mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-03 12:47:49 +00:00
Allow the reviewed TrueNAS poll wait in frozen v6.4.6
Apply only published PR #2375 (ec1c2c9e67) to restored packet68f8bf20a3. The first-success test exhausted its three-second observation window; preserve every success and summary assertion while allowing twenty seconds. The prior failure and incomplete installation coverage remain adverse evidence; this does not establish host contention or qualification success. No product code, dependencies, metadata or later line changes enter this retry. Contract-Neutral: Test-only initial-poll observation budget matches reviewed PR #2375 without changing runtime, API or install contracts or weakening success assertions. Change-source: pulse-maintainer
This commit is contained in:
parent
68f8bf20a3
commit
1abc97cbc1
1 changed files with 3 additions and 1 deletions
|
|
@ -514,7 +514,9 @@ func TestTrueNASHandlers_HandleList_IncludesPollAndObservedSummary(t *testing.T)
|
|||
t.Cleanup(poller.Stop)
|
||||
handler.getPoller = func(context.Context) *monitoring.TrueNASPoller { return poller }
|
||||
|
||||
deadline := time.Now().Add(3 * time.Second)
|
||||
// The poller records its first success within about 50ms; a loaded release
|
||||
// qualification host once took longer than 3s (v6.4.6-rc.1, 1 Oct 2026).
|
||||
deadline := time.Now().Add(20 * time.Second)
|
||||
for time.Now().Before(deadline) {
|
||||
summaries := poller.ConnectionSummaries("default", []config.TrueNASInstance{connection})
|
||||
if summary, ok := summaries[connection.ID]; ok && summary.Poll != nil && summary.Poll.LastSuccessAt != nil && summary.Observed != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue