File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
packages/firestore/test/unit/local Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ import {
78
78
79
79
import * as persistenceHelpers from './persistence_test_helpers' ;
80
80
import { TestIndexManager } from './test_index_manager' ;
81
+ import { FieldIndexManagementApiImpl } from '../../../src/index/field_index_management' ;
81
82
82
83
const TEST_TARGET_ID = 1 ;
83
84
@@ -864,14 +865,18 @@ function genericQueryEngineTest(
864
865
}
865
866
await addDocument ( ...nonmatchingDocuments ) ;
866
867
867
- queryEngine . indexAutoCreationEnabled = config . indexAutoCreationEnabled ;
868
+ const fieldIndexManagementApi = new FieldIndexManagementApiImpl ( ) ;
869
+ queryEngine . fieldIndexManagementApi = fieldIndexManagementApi ;
870
+
871
+ fieldIndexManagementApi . indexAutoCreationEnabled =
872
+ config . indexAutoCreationEnabled ;
868
873
869
874
if ( config . indexAutoCreationMinCollectionSize !== undefined ) {
870
- queryEngine . indexAutoCreationMinCollectionSize =
875
+ fieldIndexManagementApi . indexAutoCreationMinCollectionSize =
871
876
config . indexAutoCreationMinCollectionSize ;
872
877
}
873
878
if ( config . relativeIndexReadCostPerDocument !== undefined ) {
874
- queryEngine . relativeIndexReadCostPerDocument =
879
+ fieldIndexManagementApi . relativeIndexReadCostPerDocument =
875
880
config . relativeIndexReadCostPerDocument ;
876
881
}
877
882
You can’t perform that action at this time.
0 commit comments