diff --git a/test/common/index.js b/test/common/index.js index f13e61df8c8f81..8479aa7a2c089a 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -631,7 +631,7 @@ function expectWarning(name, expected) { // Remove a warning message after it is seen so that we guarantee that we // get each message only once. map.delete(expected); - }, map.size); + }, expected.length); } function expectWarningByName(name, expected, code) {