From df890ad3d2da331509afe53282987e53f266c788 Mon Sep 17 00:00:00 2001 From: himself65 Date: Tue, 24 Mar 2020 17:44:25 +0800 Subject: [PATCH] test: remove a duplicated test PR-URL: https://github.com/nodejs/node/pull/32453 Reviewed-By: Richard Lau Reviewed-By: Beth Griggs Reviewed-By: Yongsheng Zhang Reviewed-By: James M Snell Reviewed-By: Anto Aravinth --- .../test-async-hooks-recursive-stack.js | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 test/parallel/test-async-hooks-recursive-stack.js diff --git a/test/parallel/test-async-hooks-recursive-stack.js b/test/parallel/test-async-hooks-recursive-stack.js deleted file mode 100644 index bc4ac86e7f1ca1..00000000000000 --- a/test/parallel/test-async-hooks-recursive-stack.js +++ /dev/null @@ -1,20 +0,0 @@ -'use strict'; -require('../common'); -const assert = require('assert'); -const async_hooks = require('async_hooks'); - -// This test verifies that the async ID stack can grow indefinitely. - -function recurse(n) { - const a = new async_hooks.AsyncResource('foobar'); - a.runInAsyncScope(() => { - assert.strictEqual(a.asyncId(), async_hooks.executionAsyncId()); - assert.strictEqual(a.triggerAsyncId(), async_hooks.triggerAsyncId()); - if (n >= 0) - recurse(n - 1); - assert.strictEqual(a.asyncId(), async_hooks.executionAsyncId()); - assert.strictEqual(a.triggerAsyncId(), async_hooks.triggerAsyncId()); - }); -} - -recurse(1000);