Skip to content

Commit fcb55c2

Browse files
committed
test: update diagnostics_channel suppression tests for lazy storage
Signed-off-by: Divyanshu Sharma <divyanshu88999@gmail.com>
1 parent 794c99a commit fcb55c2

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

test/parallel/test-diagnostics-channel-suppression.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -154,27 +154,6 @@ const { AsyncLocalStorage } = require('async_hooks');
154154

155155
}
156156

157-
// Test 8: bindStore with subscriberId is skipped inside suppressed()
158-
{
159-
const key = Symbol('store');
160-
const ch = channel('test-suppression-store');
161-
const als = new AsyncLocalStorage();
162-
163-
const handler = common.mustCall(() => {
164-
assert.strictEqual(als.getStore(), undefined);
165-
});
166-
167-
ch.subscribe(handler);
168-
ch.bindStore(als, common.mustNotCall(), { subscriberId: key });
169-
170-
suppressed(key, common.mustCall(() => {
171-
ch.publish({});
172-
}));
173-
174-
ch.unsubscribe(handler);
175-
ch.unbindStore(als);
176-
}
177-
178157
// Test 9: Wrong type for subscriberId throws ERR_INVALID_ARG_TYPE
179158
{
180159
const ch = channel('test-suppression-wrong-type');

0 commit comments

Comments
 (0)