Skip to content

Commit a2ec22a

Browse files
Extend bucket notification timeout and map to the test timeout
Issue: ZENKO-4806
1 parent 2911d08 commit a2ec22a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/ctst/steps/notifications.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { Then, Given, When, After } from '@cucumber/cucumber';
22
import { strict as assert } from 'assert';
3-
import { S3, Utils, KafkaHelper, AWSVersionObject, NotificationDestination } from 'cli-testing';
3+
import { S3, Utils, KafkaHelper, AWSVersionObject, NotificationDestination, Constants } from 'cli-testing';
44
import { Message } from 'node-rdkafka';
55
import { cleanS3Bucket } from 'common/common';
66
import Zenko from 'world/Zenko';
77

8-
const KAFKA_TESTS_TIMEOUT = Number(process.env.KAFKA_TESTS_TIMEOUT) || 60000;
8+
const KAFKA_TESTS_TIMEOUT = Number(process.env.KAFKA_TESTS_TIMEOUT) || Constants.DEFAULT_TIMEOUT * 1.5;
99

1010
const allNotificationTypes = [
1111
's3:ObjectCreated:Put',
@@ -308,6 +308,7 @@ Then('notifications should be enabled for {string} event in destination {int}',
308308
});
309309

310310
Then('i should {string} a notification for {string} event in destination {int}',
311+
{ timeout: Constants.DEFAULT_TIMEOUT * 2 },
311312
async function (this: Zenko, receive: string, notificationType: string, destination: number) {
312313

313314
const receivedNotification = await KafkaHelper.consumeTopicUntilCondition(

0 commit comments

Comments
 (0)