mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
test(AWS MSK): Improve tests reliability
This commit is contained in:
parent
614f919146
commit
884cdfff02
@ -86,7 +86,10 @@ describe('AWS - MSK Integration Test', function () {
|
||||
FunctionName: `${stackName}-producer`,
|
||||
InvocationType: 'RequestResponse',
|
||||
}),
|
||||
{ timeout: 120 * 1000 }
|
||||
{
|
||||
checkIsComplete: (soFarEvents) =>
|
||||
soFarEvents.reduce((data, event) => data + event.message, '').includes(message),
|
||||
}
|
||||
);
|
||||
|
||||
const logs = events.reduce((data, event) => data + event.message, '');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user