From 31373493cbe55126c73db63a245ffa4c6b61664d Mon Sep 17 00:00:00 2001 From: Nicole White Date: Fri, 18 Aug 2023 16:24:07 -0400 Subject: [PATCH] AUTOBLOCKS_REPLAY_ID -> AUTOBLOCKS_SIMULATION_ID --- src/util.ts | 6 +++--- test/headers.spec.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util.ts b/src/util.ts index 4c078bc..588351e 100644 --- a/src/util.ts +++ b/src/util.ts @@ -37,7 +37,7 @@ const zCommitSchema = z.object({ type Commit = z.infer; const zEnvSchema = z.object({ - AUTOBLOCKS_REPLAY_ID: z.string().optional(), + AUTOBLOCKS_SIMULATION_ID: z.string().optional(), GITHUB_ACTIONS: z.string().optional(), }); @@ -264,8 +264,8 @@ export class HeadersBuilder { private makeReplayRun(): ReplayRun | null { if (this.env.GITHUB_ACTIONS) { return this.makeGitHubReplayRun(); - } else if (this.env.AUTOBLOCKS_REPLAY_ID) { - return this.makeLocalReplayRun(this.env.AUTOBLOCKS_REPLAY_ID); + } else if (this.env.AUTOBLOCKS_SIMULATION_ID) { + return this.makeLocalReplayRun(this.env.AUTOBLOCKS_SIMULATION_ID); } return null; diff --git a/test/headers.spec.ts b/test/headers.spec.ts index 5dcce73..3f95e37 100644 --- a/test/headers.spec.ts +++ b/test/headers.spec.ts @@ -29,7 +29,7 @@ describe('Replay Headers', () => { it('local replay', async () => { replacedEnv = jest.replaceProperty(process, 'env', { - AUTOBLOCKS_REPLAY_ID: 'my-replay-id', + AUTOBLOCKS_SIMULATION_ID: 'my-replay-id', }); const builder = new HeadersBuilder();