Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Mar 21, 2024
1 parent 962ef5b commit 1144a47
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions js/src/tests/client.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,17 +279,13 @@ test.concurrent(
outputs: { generation: "hi there 2" },
end_time: new Date().getTime(),
});
await waitUntilRunFound(langchainClient, runId, true);
await waitUntilRunFound(langchainClient, runId, false);
const run1 = await langchainClient.readRun(runId);
expect(run1.inputs).toBeDefined();
expect(Object.keys(run1.inputs)).toHaveLength(0);
expect(run1.outputs).toBeDefined();
expect(Object.keys(run1.inputs ?? {})).toHaveLength(0);
expect(Object.keys(run1.outputs ?? {})).toHaveLength(0);
await waitUntilRunFound(langchainClient, runId2, true);
await waitUntilRunFound(langchainClient, runId2, false);
const run2 = await langchainClient.readRun(runId2);
expect(run2.inputs).toBeDefined();
expect(Object.keys(run2.inputs)).toHaveLength(0);
expect(run2.outputs).toBeDefined();
expect(Object.keys(run2.inputs ?? {})).toHaveLength(0);
expect(Object.keys(run2.outputs ?? {})).toHaveLength(0);
},
240_000
Expand Down

0 comments on commit 1144a47

Please sign in to comment.