Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/metrics-outbox-multitenant.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('queue metrics for multi tenant service', () => {
GET('/odata/v4/proxy/proxyCallToExternalServiceOne', user[T2])
])

await wait(300) // Wait for metrics to be collected
await wait(150) // Wait for metrics to be collected

expect(metricValue(T1, 'cold_entries')).to.eq(0)
expect(metricValue(T1, 'incoming_messages')).to.eq(totalInc[T1])
Expand Down Expand Up @@ -138,7 +138,7 @@ describe('queue metrics for multi tenant service', () => {
if (timeAfterFirstRetry - timeOfInitialCall < 1000) {
await wait(1000 - (timeAfterFirstRetry - timeOfInitialCall))
}
await wait(300) // ... for metrics to be collected
await wait(150) // ... for metrics to be collected

expect(metricValue(T1, 'cold_entries')).to.eq(0)
expect(metricValue(T1, 'incoming_messages')).to.eq(totalInc[T1])
Expand Down
12 changes: 6 additions & 6 deletions test/metrics-outbox.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('queue metrics for single tenant service', () => {
test('metrics are collected', async () => {
await GET('/odata/v4/proxy/proxyCallToExternalServiceOne', admin)

await wait(300) // Wait for metrics to be collected
await wait(150) // Wait for metrics to be collected

expect(metricValue('cold_entries', E1)).to.eq(0)
expect(metricValue('remaining_entries', E1)).to.eq(0)
Expand All @@ -99,7 +99,7 @@ describe('queue metrics for single tenant service', () => {

await GET('/odata/v4/proxy/proxyCallToExternalServiceTwo', admin)

await wait(300) // Wait for metrics to be collected
await wait(150) // Wait for metrics to be collected

expect(metricValue('cold_entries', E2)).to.eq(0)
expect(metricValue('remaining_entries', E2)).to.eq(0)
Expand Down Expand Up @@ -149,7 +149,7 @@ describe('queue metrics for single tenant service', () => {
await GET('/odata/v4/proxy/proxyCallToExternalServiceOne', admin)
await GET('/odata/v4/proxy/proxyCallToExternalServiceTwo', admin)

await wait(300) // ... for metrics to be collected
await wait(150) // ... for metrics to be collected
expect(currentRetryCount[E1]).to.eq(1)

expect(metricValue('cold_entries', E1)).to.eq(0)
Expand Down Expand Up @@ -183,7 +183,7 @@ describe('queue metrics for single tenant service', () => {
await wait(1000 - (timeAfterFirstRetry - timeOfInitialCall))
}

await wait(300) // ... for metrics to be collected again
await wait(150) // ... for metrics to be collected again

expect(metricValue('cold_entries', E1)).to.eq(0)
expect(metricValue('remaining_entries', E1)).to.eq(1)
Expand All @@ -205,7 +205,7 @@ describe('queue metrics for single tenant service', () => {

// Wait for the second retry to be initiated
while (currentRetryCount[E1] < 3) await wait(100)
await wait(300) // ... for the retry to be processed and metrics to be collected
await wait(150) // ... for the retry to be processed and metrics to be collected
expect(currentRetryCount[E1]).to.eq(3)
expect(currentRetryCount[E2]).to.eq(3)

Expand Down Expand Up @@ -258,7 +258,7 @@ describe('queue metrics for single tenant service', () => {
await GET('/odata/v4/proxy/proxyCallToExternalServiceOne', admin)
await GET('/odata/v4/proxy/proxyCallToExternalServiceTwo', admin)

await wait(300) // ... for metrics to be collected
await wait(150) // ... for metrics to be collected

expect(metricValue('cold_entries', E1)).to.eq(1)
expect(metricValue('remaining_entries', E1)).to.eq(0)
Expand Down
Loading