Update buffer swap test to use better variable names
tests/parallel/buffer-swap.js
has all variables defined at the top level scope, and hence the variable names are variations of buf
, buf2
, buf3
etc.
This PR puts each setup/assertion code block into its own block, and renames the variables to be easier to read.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test