You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while running the tests suite i often get multiple similar requests interleaved by 1-sec. occasionally this pattern loops for a long time to the point i have to kill the process and start again.
even when it eventually stops, this causes the server's logs to increase unnecessarily and make debugging a lot harder.
the issue, me think, is in helper.js/genDelay(), specifically the line
} else if ((new Date(res.headers['x-experience-api-consistent-through'])).valueOf() + module.exports.getTimeMargin() >= time) {
which in turn relies on the global TIME_MARGIN that gets set early on when the harness starts. in my case this measure, taken first thing after the server starts, is always longer than subsequent POSTs.
replacing the else conditional w/ \
} else if ((new Date(res.headers['x-experience-api-consistent-through'])).valueOf() >= time) {
solves my problem.
may be allowing to (a) ignore the TIME_MARGIN or (b) adjusting it by a multiplier as command line options could be considered.
thanks + cheers;
rsn
The text was updated successfully, but these errors were encountered:
hi there,
while running the tests suite i often get multiple similar requests interleaved by 1-sec. occasionally this pattern loops for a long time to the point i have to kill the process and start again.
even when it eventually stops, this causes the server's logs to increase unnecessarily and make debugging a lot harder.
the issue, me think, is in
helper.js/genDelay()
, specifically the linewhich in turn relies on the global
TIME_MARGIN
that gets set early on when the harness starts. in my case this measure, taken first thing after the server starts, is always longer than subsequent POSTs.replacing the
else
conditional w/ \solves my problem.
may be allowing to (a) ignore the TIME_MARGIN or (b) adjusting it by a multiplier as command line options could be considered.
thanks + cheers;
rsn
The text was updated successfully, but these errors were encountered: