Add non blocking comments from previous commit 40/140840/1
authoremaclee <lee.anjella.macabuhay@est.tech>
Fri, 2 May 2025 12:23:37 +0000 (13:23 +0100)
committeremaclee <lee.anjella.macabuhay@est.tech>
Fri, 2 May 2025 12:23:37 +0000 (13:23 +0100)
- Adding non blocking comments changes from 140838: Increase CM Notification Event KPI Background Load | https://gerrit.onap.org/r/c/cps/+/140838

Issue-ID: CPS-2752
Change-Id: I14c28466f69d9ff83692075f4283b7631e947fd3
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
k6-tests/ncmp/common/produce-avc-event.js

index 53ddb56..4f25b46 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  ============LICENSE_START=======================================================
- *  Copyright (C) 2024-2025 Nordix Foundation
+ *  Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
  *  ================================================================================
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -24,7 +24,6 @@ import {Writer, SchemaRegistry, SCHEMA_TYPE_STRING} from 'k6/x/kafka';
 
 const testEventPayload = JSON.stringify(JSON.parse(open('../../resources/sampleAvcInputEvent.json')));
 const schemaRegistry = new SchemaRegistry();
-let messagesSent = 0;
 
 const kafkaProducer = new Writer({
     brokers: ['localhost:9092'],
@@ -75,7 +74,6 @@ export function sendBatchOfKafkaMessages(batchSize = 250) {
 
     try {
         kafkaProducer.produce({messages: messages});
-        messagesSent += messages.length;
         const isBatchSent = check(kafkaProducer, {
             ['Batch of ${batchSize} messages sent successfully']: (producer) => producer != null,
         });