From 115f801ae44b64bfcb4f4aa70de92eb6cdfac652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Tue, 15 Aug 2023 13:55:34 +0200 Subject: [PATCH] test: fix assertion message in test_async.c PR-URL: https://github.com/nodejs/node/pull/49146 Reviewed-By: Moshe Atlow Reviewed-By: Luigi Pinca --- test/node-api/test_async/test_async.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/node-api/test_async/test_async.c b/test/node-api/test_async/test_async.c index f4faa3d81b0..21402721895 100644 --- a/test/node-api/test_async/test_async.c +++ b/test/node-api/test_async/test_async.c @@ -65,7 +65,7 @@ static napi_value Test(napi_env env, napi_callback_info info) { void* data; NODE_API_CALL(env, napi_get_cb_info(env, info, &argc, argv, &_this, &data)); - NODE_API_ASSERT(env, argc >= 3, "Not enough arguments, expected 2."); + NODE_API_ASSERT(env, argc >= 3, "Not enough arguments, expected 3."); napi_valuetype t; NODE_API_CALL(env, napi_typeof(env, argv[0], &t));