test: replace anonymous closure function with arrow function

PR-URL: https://github.com/nodejs/node/pull/24435
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
Kunda Sunil Kumar 2018-11-17 18:14:03 +05:30 committed by Rich Trott
parent f86b7a998b
commit 8e4688a2e0

View File

@ -29,7 +29,7 @@ client.on('listening', function() {
onsend();
});
client.on('message', function(buf, info) {
client.on('message', (buf, info) => {
received++;
if (received === limit) {
client.close();