Files
dokploy/apps
Narciso cee950b6c8 fix(test): wait for swarm convergence before idempotency re-check
setupMonitoring's "is idempotent" test calls it twice back to back.
Swarm keeps converging a freshly created service (scheduling tasks,
resolving endpoints), which bumps Version.Index on its own shortly
after creation. If that bump lands between the second call's inspect()
and update(), Docker rejects it with "update out of sequence" even
though nothing else touched the service.

This never happens in production — setupMonitoring is only triggered
by a UI button click or once during server setup, both far enough
apart in wall-clock time for Swarm to settle. So the fix stays in the
test: wait for two consecutive Version.Index reads to agree before
making the second call.
2026-08-31 16:38:20 -04:00
..