test: simplify test-tls-set-secure-context · nodejs/node@81a2194 · GitHub
Skip to content

Commit 81a2194

Browse files
tniessendanielleadams
authored andcommitted
test: simplify test-tls-set-secure-context
Instead of recursively scheduling makeRemainingRequests and ignoring its outcome, safely loop within the async function. Avoid unncessary async lambda functions passed to assert.rejects. Use events.once() to simplify control flow in makeRequest, instead of manually constructing a Promise. PR-URL: #43878 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent d7e9bd1 commit 81a2194

1 file changed

Lines changed: 28 additions & 41 deletions

File tree

test/parallel/test-tls-set-secure-context.js

Lines changed: 28 additions & 41 deletions

0 commit comments

Comments
 (0)