diff --git a/run/logging-manual/package.json b/run/logging-manual/package.json index 2927d2eb4e..b1aa515371 100644 --- a/run/logging-manual/package.json +++ b/run/logging-manual/package.json @@ -10,7 +10,7 @@ "scripts": { "start": "node index.js", "test": "echo \"Error: no test specified\" && exit 0", - "system-test": "c8 mocha test/system.test.js --timeout=600000 --exit" + "system-test": "c8 mocha test/system.test.js --timeout=800000 --exit" }, "author": "", "license": "Apache-2.0", diff --git a/run/logging-manual/test/system.test.js b/run/logging-manual/test/system.test.js index 9f1a8d36eb..2923c4e412 100644 --- a/run/logging-manual/test/system.test.js +++ b/run/logging-manual/test/system.test.js @@ -156,14 +156,19 @@ describe('Logging', () => { let attempt = 0; const maxAttempts = 10; while ((!requestLog || !sampleLog) && attempt < maxAttempts) { - await sleep(attempt * 30000); // Linear backoff between retry attempts + console.log(`Polling for logs: attempt #${attempt + 1}`); + await sleep(attempt * 10000); // Linear backoff between retry attempts // Filter by service name over the last 5 minutes const filter = `resource.labels.service_name="${service_name}" timestamp>="${dateMinutesAgo( new Date(), 5 )}"`; entries = await getLogEntriesPolling(filter); + console.log( + `Found ${entries.length} log entries using filter: ${filter}` + ); entries.forEach(entry => { + console.debug(entry); if (entry.metadata.httpRequest) { requestLog = entry; } else {