Skip to content

Commit

Permalink
Merge pull request #618 from mugi-uno/fix/syncExpected
Browse files Browse the repository at this point in the history
fix: pass expectedKey after syncExpected
  • Loading branch information
Quramy committed May 2, 2024
2 parents 24108c5 + e76cd8d commit 8746ef3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/reg-suit-core/src/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ export class RegProcessor {
syncExpected(ctx: StepResultAfterExpectedKey): Promise<StepResultAfterExpectedKey> {
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);
Expand Down

0 comments on commit 8746ef3

Please sign in to comment.