Skip to content

Commit

Permalink
fix: clone cell ids in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jost-s committed Sep 26, 2024
1 parent 521a24c commit 03e25b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions test/e2e/app-websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ test(
await admin.enableApp({ installed_app_id: app_id1 });

let received1 = false;
const signalCb1: AppSignal = () => {
const signalCb1: SignalCb = () => {
received1 = true;
};

Expand All @@ -164,7 +164,7 @@ test(
await admin.enableApp({ installed_app_id: app_id2 });

let received2 = false;
const signalCb2: AppSignal = () => {
const signalCb2: SignalCb = () => {
received2 = true;
};

Expand Down Expand Up @@ -261,7 +261,7 @@ test(
await admin.authorizeSigningCredentials(cloneCell.cell_id);

await appWs.disableCloneCell({
clone_cell_id: cloneCell.cell_id,
clone_cell_id: cloneCell.cell_id[0],
});

const appInfo = await appWs.appInfo();
Expand All @@ -284,7 +284,7 @@ test(
}

await appWs.enableCloneCell({
clone_cell_id: cloneCell.cell_id,
clone_cell_id: cloneCell.cell_id[0],
});
await appWs.callZome(params);
t.pass("re-enabled clone can be called");
Expand Down
10 changes: 5 additions & 5 deletions test/e2e/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ test(
await admin.authorizeSigningCredentials(cloneCell.cell_id);

await client.disableCloneCell({
clone_cell_id: cloneCell.cell_id,
clone_cell_id: cloneCell.cell_id[0],
});

const appInfo = await client.appInfo();
Expand Down Expand Up @@ -1232,7 +1232,7 @@ test(
};
const cloneCell = await client.createCloneCell(createCloneCellParams);
await client.disableCloneCell({
clone_cell_id: cloneCell.cell_id,
clone_cell_id: cloneCell.cell_id[0],
});

const enabledCloneCell = await client.enableCloneCell({
Expand Down Expand Up @@ -1274,17 +1274,17 @@ test(
const cloneCell = await client.createCloneCell(createCloneCellParams);
createCloneCellParams.modifiers.network_seed = "clone-1";
await client.disableCloneCell({
clone_cell_id: cloneCell.cell_id,
clone_cell_id: cloneCell.cell_id[0],
});

await admin.deleteCloneCell({
app_id: installed_app_id,
clone_cell_id: cloneCell.cell_id,
clone_cell_id: cloneCell.cell_id[0],
});

try {
await client.enableCloneCell({
clone_cell_id: cloneCell.cell_id,
clone_cell_id: cloneCell.cell_id[0],
});
t.fail();
} catch (error) {
Expand Down

0 comments on commit 03e25b1

Please sign in to comment.