From b12d0c8f55abfa302a730403c8760a7ee646b168 Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Thu, 15 Aug 2024 12:42:21 +0100 Subject: [PATCH] Fix syntax error on k6 test Issue-ID: CPS-2357 Signed-off-by: danielhanrahan Change-Id: Ibbd32282608ff707c8030d43df3cf85043242218 --- k6-tests/ncmp/common/cmhandle-crud.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k6-tests/ncmp/common/cmhandle-crud.js b/k6-tests/ncmp/common/cmhandle-crud.js index fa99270f39..88ecdb45b8 100644 --- a/k6-tests/ncmp/common/cmhandle-crud.js +++ b/k6-tests/ncmp/common/cmhandle-crud.js @@ -44,7 +44,7 @@ function createCmHandles(cmHandleIds) { const url = `${NCMP_BASE_URL}/ncmpInventory/v1/ch`; const payload = { "dmiPlugin": DMI_PLUGIN_URL, - "createdCmHandles": cmHandleIds.((cmHandleId, index) => ({ + "createdCmHandles": cmHandleIds.map((cmHandleId, index) => ({ "cmHandle": cmHandleId, "alternateId": `alt-${cmHandleId}`, "moduleSetTag": MODULE_SET_TAGS[index % MODULE_SET_TAGS.length], -- 2.16.6