[js/node] release sessions after use in npm test (#17353)

### Description
resolve sessions after use in NPM test.
This commit is contained in:
Yulong Wang 2023-09-05 23:42:32 -07:00 committed by GitHub
parent d88406a31b
commit fa868ca9cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,6 +112,14 @@ export function run(testDataRoot: string): void {
});
}
}
if (!skipModel) {
after(async () => {
if (session !== null) {
await session.release();
}
});
}
});
}
}