Skip to content

Commit 499db72

Browse files
committed
Add missing function for testing langchainjs.
Revision was added with 'v' prefix, but upstream repository do not use it. Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent 5e39dd1 commit 499db72

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

test/run-upstream

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ test_client_faas
2626
test_client_cloudevents
2727
test_client_fastify
2828
test_client_pino
29-
test_client_langchain
29+
test_client_langchainjs
3030
"
3131

3232
readonly EXPRESS_REVISION="${EXPRESS_REVISION:-$(docker run --rm "${IMAGE_NAME}" -- npm show express version)}"
@@ -45,8 +45,8 @@ readonly CLOUDEVENTS_REVISION="v${CLOUDEVENTS_REVISION:-$(docker run --rm "${IMA
4545
readonly CLOUDEVENTS_REPO="https://github.com/cloudevents/sdk-javascript.git"
4646
readonly FASTIFY_REVISION="v${FASTIFY_REVISION:-$(docker run --rm "${IMAGE_NAME}" -- npm show fastify version)}"
4747
readonly FASTIFY_REPO="https://github.com/fastify/fastify.git"
48-
readonly LANGCHAIN_REVISION=v"${LANGCHAIN_REVISION:-$(docker run --rm "${IMAGE_NAME}" -- npm show langchain version)}"
49-
readonly LANGCHAIN_REPO="https://github.com/langchain-ai/langchainjs"
48+
readonly LANGCHAINJS_REVISION="${LANGCHAINJS_REVISION:-$(docker run --rm "${IMAGE_NAME}" -- npm show langchain version)}"
49+
readonly LANGCHAINJS_REPO="https://github.com/langchain-ai/langchainjs.git"
5050

5151
# Since we built the candidate image locally, we don't want S2I attempt to pull
5252
# it from a registry

test/test-lib-nodejs.sh

+6
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,12 @@ function test_client_cloudevents() {
448448
echo "Running CloudEvents client test"
449449
test_running_client_js cloudevents
450450
}
451+
452+
function test_client_langchainjs() {
453+
echo "Running langchainjs client test"
454+
test_running_client_js langchainjs
455+
}
456+
451457
function test_client_fastify() {
452458
if [[ "${VERSION}" == *"minimal"* ]]; then
453459
VERSION=$(echo "${VERSION}" | cut -d "-" -f 1)

0 commit comments

Comments
 (0)