File tree Expand file tree Collapse file tree 2 files changed +20
-10
lines changed
compass-schema/src/stores
compass-smoke-tests/src/tests Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -121,29 +121,37 @@ export const cancelExportSchema = (): SchemaThunkAction<
121121async function getSchemaByFormat ( {
122122 exportFormat,
123123 schemaAccessor,
124+ signal,
124125} : {
125126 exportFormat : SchemaFormat ;
126127 schemaAccessor : SchemaAccessor ;
127128 signal : AbortSignal ;
128129} ) : Promise < string > {
129- // TODO: Use the signal once we pull in the schema accessor type changes.
130130 let schema :
131131 | StandardJSONSchema
132132 | MongoDBJSONSchema
133133 | ExpandedJSONSchema
134134 | InternalSchema ;
135135 switch ( exportFormat ) {
136136 case 'standardJSON' :
137- schema = await schemaAccessor . getStandardJsonSchema ( ) ;
137+ schema = await schemaAccessor . getStandardJsonSchema ( {
138+ signal,
139+ } ) ;
138140 break ;
139141 case 'mongoDBJSON' :
140- schema = await schemaAccessor . getMongoDBJsonSchema ( ) ;
142+ schema = await schemaAccessor . getMongoDBJsonSchema ( {
143+ signal,
144+ } ) ;
141145 break ;
142146 case 'extendedJSON' :
143- schema = await schemaAccessor . getExpandedJSONSchema ( ) ;
147+ schema = await schemaAccessor . getExpandedJSONSchema ( {
148+ signal,
149+ } ) ;
144150 break ;
145151 case 'legacyJSON' :
146- schema = await schemaAccessor . getInternalSchema ( ) ;
152+ schema = await schemaAccessor . getInternalSchema ( {
153+ signal,
154+ } ) ;
147155 break ;
148156 }
149157
Original file line number Diff line number Diff line change @@ -57,11 +57,13 @@ export async function testAutoUpdateTo(context: SmokeTestsContext) {
5757 bucket_key_prefix : context . bucketKeyPrefix ,
5858 } ) ;
5959 } else {
60- process . env . PUBLISHED_RELEASES = JSON . stringify ( {
61- name : version ,
62- body : version ,
63- bucket_key_prefix : context . bucketKeyPrefix ,
64- } ) ;
60+ process . env . PUBLISHED_RELEASES = JSON . stringify ( [
61+ {
62+ name : version ,
63+ body : version ,
64+ bucket_key_prefix : context . bucketKeyPrefix ,
65+ } ,
66+ ] ) ;
6567 }
6668
6769 const server = await startAutoUpdateServer ( ) ;
You can’t perform that action at this time.
0 commit comments