test: use arrow function instead of bind
Using an arrow function here eliminates the need to call bind()
.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test