diff --git a/packages/reg-suit-core/src/processor.ts b/packages/reg-suit-core/src/processor.ts index e4057adf..80f54b4a 100644 --- a/packages/reg-suit-core/src/processor.ts +++ b/packages/reg-suit-core/src/processor.ts @@ -175,7 +175,9 @@ export class RegProcessor { syncExpected(ctx: StepResultAfterExpectedKey): Promise { const keyForExpected = ctx.expectedKey; if (this._publisher && keyForExpected) { - return this._publisher.fetch(keyForExpected); + return this._publisher.fetch(keyForExpected).then(result => { + return { ...ctx, ...result }; + }); } else if (!keyForExpected) { this._logger.info("Skipped to fetch the expected data because expected key is null."); return Promise.resolve(ctx);