TagSpaces is an offline, open source, document manager with tagging support
chore: fix s3proxy windows
Ilian Sapundshiev7114da63f7c8
diff --git a/tests/s3rver/S3DataRefresh.js b/tests/s3rver/S3DataRefresh.jsindex ad186adce..993e5bf9f 100644--- a/tests/s3rver/S3DataRefresh.js+++ b/tests/s3rver/S3DataRefresh.js@@ -103,6 +103,7 @@ async function deleteAllObjects(bucketName) {console.log(`All objects in bucket "${bucketName}" have been deleted.`);} catch (error) {console.error('Error deleting objects:', error);+ if (error.code === 'ECONNREFUSED') throw error;}}diff --git a/tests/setup-functions.js b/tests/setup-functions.jsindex 424302c76..0f06c521b 100644--- a/tests/setup-functions.js+++ b/tests/setup-functions.js@@ -67,10 +67,10 @@ export async function runS3Proxy(testWorkerDir, port = 4569, silent = true) {]);s3proxyProcess.on('exit', function (code) {- // console.log('S3Proxy exit with code:', code);+ console.error('S3Proxy exit with code:', code);});s3proxyProcess.on('close', (code, signal) => {- // console.log(`S3Proxy terminated due to signal ${signal}`);+ console.error(`S3Proxy closed with code ${code}, signal ${signal}`);});if (!silent) {@@ -80,9 +80,8 @@ export async function runS3Proxy(testWorkerDir, port = 4569, silent = true) {}s3proxyProcess.stderr.on('data', function (data) {- if (!silent) {- console.log('S3Proxy stderr: ' + data);- }+ // Always log stderr to capture Java errors/crashes+ console.error('S3Proxy stderr: ' + data);});// Wait for S3Proxy to be ready by polling the endpoint