Skip to content

Commit 70fb341

Browse files
authored
Merge pull request #423 from LambdaTest/stage
Stage
2 parents 938fec2 + 5862c7c commit 70fb341

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/lib/ctx.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ export default (options: Record<string, string>): Context => {
9595
if (options.userName && options.accessKey) {
9696
env.LT_USERNAME = options.userName
9797
env.LT_ACCESS_KEY = options.accessKey
98-
process.env.LT_USERNAME = options.userName
99-
process.env.LT_ACCESS_KEY = options.accessKey
98+
// process.env.LT_USERNAME = options.userName
99+
// process.env.LT_ACCESS_KEY = options.accessKey
100100
}
101101
} catch (error: any) {
102102
console.log(`[smartui] Error: ${error.message}`);

src/lib/server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export default async (ctx: Context): Promise<FastifyInstance<Server, IncomingMes
7676
throw new Error(`Invalid snapshot options; rejectionThreshold (${snapshot.options.rejectionThreshold}) must be greater than approvalThreshold (${snapshot.options.approvalThreshold})`);
7777
}
7878
}
79+
snapshot.name=snapshot?.name?.trim();
7980

8081
// Fetch sessionId from snapshot options if present
8182
const sessionId = snapshot?.options?.sessionId;

0 commit comments

Comments
 (0)