@@ -26,8 +26,6 @@ import {
2626import * as chromadb from "chromadb" ;
2727import * as assert from "assert" ;
2828
29- import { exec , ChildProcess } from "child_process" ;
30-
3129const memoryExporter = new InMemorySpanExporter ( ) ;
3230
3331describe ( "Test ChromaDB instrumentation" , function ( ) {
@@ -36,13 +34,8 @@ describe("Test ChromaDB instrumentation", function () {
3634 let contextManager : AsyncHooksContextManager ;
3735 let chromaDbClient : chromadb . ChromaClient ;
3836 let collection : chromadb . Collection ;
39- let chromaRun : ChildProcess ;
4037
4138 this . beforeAll ( async ( ) => {
42- // Run ChromaDB instance on different terminal instance
43- chromaRun = exec ( "/bin/sh" ) ;
44- chromaRun . stdin ?. write ( "chroma run --path .\n" ) ;
45-
4639 chromaDbClient = new chromadb . ChromaClient ( ) ;
4740
4841 // Wait for ChromaDB to spin up
@@ -92,14 +85,6 @@ describe("Test ChromaDB instrumentation", function () {
9285 context . disable ( ) ;
9386 } ) ;
9487
95- after ( ( ) => {
96- // Terminate the Chroma client process after tests
97- if ( chromaRun . pid ) {
98- // DEBT: chromaRun.kill() is not killing spawned process
99- process . exit ( 0 ) ;
100- }
101- } ) ;
102-
10388 it ( "should set span attributes for Query" , async ( ) => {
10489 const input : chromadb . QueryParams = {
10590 nResults : 2 ,
0 commit comments