We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f04dc3f commit 09d4483Copy full SHA for 09d4483
tests/js/client/aql/aql-query-metrics-fp.js
@@ -133,7 +133,17 @@ function QueryMetricsTestSuite() {
133
arango.PUT_RAW('/_api/job/' + cursorsIds[i], "");
134
}
135
136
- aqlCurrentQueryMetric = getMetricSingle("arangodb_aql_current_query");
+ iterations = 0;
137
+ // The metrics should eventually reach 0
138
+ while (iterations < maxIterations) {
139
+ aqlCurrentQueryMetric = getMetricSingle("arangodb_aql_current_query");
140
+ if (aqlCurrentQueryMetric === 0) {
141
+ break;
142
+ }
143
+ sleep(0.1);
144
+ iterations++;
145
146
+
147
assertEqual(aqlCurrentQueryMetric, 0);
148
} finally {
149
IM.debugRemoveFailAt("Query::delayingExecutionPhase");
0 commit comments