mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-26 03:00:54 +00:00
[js/node] release sessions after use in npm test (#17353)
### Description resolve sessions after use in NPM test.
This commit is contained in:
parent
d88406a31b
commit
fa868ca9cd
1 changed files with 8 additions and 0 deletions
|
|
@ -112,6 +112,14 @@ export function run(testDataRoot: string): void {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (!skipModel) {
|
||||
after(async () => {
|
||||
if (session !== null) {
|
||||
await session.release();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue