diff --git a/packages/core/src/tests/CallbackManager.test.ts b/packages/core/src/tests/CallbackManager.test.ts
index e66d3e6501c386899a586cff2bca1289747fe169..5e453b712acb915a625b7f486907dfcee0974b3b 100644
--- a/packages/core/src/tests/CallbackManager.test.ts
+++ b/packages/core/src/tests/CallbackManager.test.ts
@@ -134,11 +134,10 @@ describe("CallbackManager: onLLMStream and onRetrieve", () => {
   });
 
   test("For ListIndex w/ a ListIndexRetriever", async () => {
-    const listIndex = await ListIndex.fromDocuments(
-      [document],
-      undefined,
-      serviceContext
-    );
+    const listIndex = await ListIndex.fromDocuments({
+      documents: [document],
+      serviceContext,
+    });
     const queryEngine = listIndex.asQueryEngine();
     const query = "What is the author's name?";
     const response = await queryEngine.aquery(query);