Skip to content

Commit

Permalink
test: fix assertion message in test_async.c
Browse files Browse the repository at this point in the history
PR-URL: #49146
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
tniessen authored and RafaelGSS committed Aug 17, 2023
1 parent 1d17c10 commit 3ddb155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/node-api/test_async/test_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 3ddb155

Please sign in to comment.