Skip to content

Commit

Permalink
await on executeTool
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbion authored Feb 13, 2024
1 parent 142a07b commit 8d71218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/ToolManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ describe('ToolManager', () => {
expect(tool).toBeDefined();
});

it('should execute a tool', () => {
const result = ToolManager.executeTool(toolName, toolContext, parameters);
it('should execute a tool', async () => {
const result = await ToolManager.executeTool(toolName, toolContext, parameters);
const expectedResult = 'toolCallback foo bar';
expect(result).toEqual(expectedResult);
});
Expand Down

0 comments on commit 8d71218

Please sign in to comment.