fix(tapbundle_serverside): allocate a free port when starting SmartStorage
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2026-05-08 - 3.6.5 - fix(tapbundle_serverside)
|
||||||
|
allocate a free port when starting SmartStorage
|
||||||
|
|
||||||
|
- Updates TapNodeTools.createSmartStorage() to resolve an available port starting from 3003 before launching SmartStorage
|
||||||
|
- Avoids startup failures and port conflicts caused by always binding SmartStorage to the fixed port 3003
|
||||||
|
|
||||||
## 2026-05-08 - 3.6.4 - fix(tapbundle_serverside)
|
## 2026-05-08 - 3.6.4 - fix(tapbundle_serverside)
|
||||||
use native fs promises to create the test files directory and write the downloaded alpine tarball
|
use native fs promises to create the test files directory and write the downloaded alpine tarball
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tstest',
|
name: '@git.zone/tstest',
|
||||||
version: '3.6.4',
|
version: '3.6.5',
|
||||||
description: 'A powerful, modern test runner for TypeScript with multi-runtime support (Node.js, Deno, Bun, Chromium) and a batteries-included test framework.'
|
description: 'A powerful, modern test runner for TypeScript with multi-runtime support (Node.js, Deno, Bun, Chromium) and a batteries-included test framework.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,8 +93,9 @@ export class TapNodeTools {
|
|||||||
*/
|
*/
|
||||||
public async createSmartStorage() {
|
public async createSmartStorage() {
|
||||||
const smartstorageMod = await import('@push.rocks/smartstorage');
|
const smartstorageMod = await import('@push.rocks/smartstorage');
|
||||||
|
const port = await this.findFreePort({ startPort: 3003 });
|
||||||
const smartstorageInstance = await smartstorageMod.SmartStorage.createAndStart({
|
const smartstorageInstance = await smartstorageMod.SmartStorage.createAndStart({
|
||||||
server: { port: 3003 },
|
server: { port },
|
||||||
storage: { cleanSlate: true },
|
storage: { cleanSlate: true },
|
||||||
});
|
});
|
||||||
return smartstorageInstance;
|
return smartstorageInstance;
|
||||||
|
|||||||
Reference in New Issue
Block a user