Flaky Test: closing aggregation cursor emits close event only once (gh-8835)
Description
The test closing aggregation cursor emits close event only once (gh-8835) in test/query.cursor.test.js is flaky and fails in CI environments.
Failure
1) QueryCursor
closing aggregation cursor emits `close` event only once (gh-8835):
Uncaught AssertionError [ERR_ASSERTION]: 0 == 1
+ expected - actual
-0
+1
Cause
The test uses a setTimeout of 20ms to wait for the close event. In slower environments (like CI), the close event might not be emitted within this short window, causing the assertion to fail.
Fix
Increase the timeout to 200ms to allow sufficient time for the event to be emitted, consistent with other tests in the file.