Skip to content

Commit

Permalink
AUTOBLOCKS_REPLAY_ID -> AUTOBLOCKS_SIMULATION_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole White committed Aug 18, 2023
1 parent 97d1c75 commit 3137349
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const zCommitSchema = z.object({
type Commit = z.infer<typeof zCommitSchema>;

const zEnvSchema = z.object({
AUTOBLOCKS_REPLAY_ID: z.string().optional(),
AUTOBLOCKS_SIMULATION_ID: z.string().optional(),
GITHUB_ACTIONS: z.string().optional(),
});

Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/headers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3137349

Please sign in to comment.