From 6542bec63eb997d8dd664d3632688020ff8bedd0 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 28 Nov 2024 23:50:09 +0100 Subject: [PATCH] fix role name --- ts/test/local/conductor.ts | 4 ++-- ts/test/trycp/conductor.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ts/test/local/conductor.ts b/ts/test/local/conductor.ts index cd53e389..aec720d0 100644 --- a/ts/test/local/conductor.ts +++ b/ts/test/local/conductor.ts @@ -344,7 +344,7 @@ test("Local Conductor - install app with roles settings", async (t) => { }, { rolesSettings: { - foo: { + [ROLE_NAME]: { type: "Provisioned", membrane_proof: new Uint8Array(6), modifiers: { @@ -366,7 +366,7 @@ test("Local Conductor - install app with roles settings", async (t) => { const appInfo = await appWs.appInfo(); const provisionedCell: ProvisionedCell = - appInfo.cell_info["foo"][0][CellType.Provisioned]; + appInfo.cell_info[ROLE_NAME][0][CellType.Provisioned]; t.equal(provisionedCell.dna_modifiers.network_seed, "hello"); t.deepEqual( yaml.load(decode(provisionedCell.dna_modifiers.properties) as string), diff --git a/ts/test/trycp/conductor.ts b/ts/test/trycp/conductor.ts index bef65c45..0ba5217e 100644 --- a/ts/test/trycp/conductor.ts +++ b/ts/test/trycp/conductor.ts @@ -326,7 +326,7 @@ test("TryCP Conductor - install app with roles settings", async (t) => { }, { rolesSettings: { - foo: { + [ROLE_NAME]: { type: "Provisioned", membrane_proof: new Uint8Array(6), modifiers: { @@ -350,7 +350,7 @@ test("TryCP Conductor - install app with roles settings", async (t) => { const appInfo = await appWs.appInfo(); if (!appInfo) throw new Error("AppInfo undefined."); const provisionedCell: ProvisionedCell = - appInfo.cell_info["foo"][0][CellType.Provisioned]; + appInfo.cell_info[ROLE_NAME][0][CellType.Provisioned]; t.equal(provisionedCell.dna_modifiers.network_seed, "hello"); t.deepEqual( yaml.load(decode(provisionedCell.dna_modifiers.properties) as string),