Skip to content

Commit 8f23c7b

Browse files
committed
Properly catch missing groups
1 parent d9e7df2 commit 8f23c7b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

forks/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const epochRotationOperations = {
2626
removeMember: true, // removes a random member from the group
2727
};
2828
export const otherOperations = {
29-
createInstallation: false, // creates a new installation for a random worker
29+
createInstallation: true, // creates a new installation for a random worker
3030
sendMessage: true, // sends a message to the group
3131
sync: false, // syncs the group
3232
};

forks/forks.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ const {
3232
} = getConfigFromEnv();
3333

3434
const createOperations = (worker: Worker, groupID: string) => {
35-
const getGroup = () => {
36-
const group = worker.client.conversations.getConversationById(groupID);
35+
const getGroup = async () => {
36+
const group =
37+
await worker.client.conversations.getConversationById(groupID);
3738
if (!group) {
3839
throw new Error(`Group ${groupID} not found`);
3940
}
40-
return group as Promise<Group>;
41+
return group as Group;
4142
};
4243

4344
return {

0 commit comments

Comments
 (0)