diff --git a/test/node-api/test_worker_terminate_finalization/test.js b/test/node-api/test_worker_terminate_finalization/test.js index d58324d5e5f696..7240520080e66c 100644 --- a/test/node-api/test_worker_terminate_finalization/test.js +++ b/test/node-api/test_worker_terminate_finalization/test.js @@ -1,10 +1,6 @@ 'use strict'; const common = require('../../common'); -// TODO(addaleax): Run this test once it stops failing under ASAN/valgrind. -// Refs: https://github.com/nodejs/node/issues/34731 -common.skip('Reference management in N-API leaks memory'); - const { Worker, isMainThread } = require('worker_threads'); if (isMainThread) { diff --git a/test/node-api/test_worker_terminate_finalization/test_worker_terminate_finalization.c b/test/node-api/test_worker_terminate_finalization/test_worker_terminate_finalization.c index bb23830ecd2731..44b7be1d12fbfe 100644 --- a/test/node-api/test_worker_terminate_finalization/test_worker_terminate_finalization.c +++ b/test/node-api/test_worker_terminate_finalization/test_worker_terminate_finalization.c @@ -10,7 +10,6 @@ int wrappedNativeData; napi_ref ref; void WrapFinalizer(napi_env env, void* data, void* hint) { uint32_t count; - NAPI_CALL_RETURN_VOID(env, napi_reference_unref(env, ref, &count)); NAPI_CALL_RETURN_VOID(env, napi_delete_reference(env, ref)); }