Skip to content

Commit e473cc2

Browse files
committed
comment fixes
1 parent 311610b commit e473cc2

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ Use the following environment variables to set additional configuration options:
112112
- `LT_TIMEZONE` - Configure tests to run on a custom time zone. (Not for Real Devices)
113113
- `LT_TUNNEL_NUMBER` - Number of tunnel to be spawned at a time.
114114
- `LOAD_BALANCED_MODE` - Load balancing between multiple tunnels spawned.
115+
- `LOG_LT_SESSION_URL` - true or false, to log all the session urls.
116+
- `LT_SESSION_LOG_PATH` - Configure the specific path for the .txt file containing session urls.
115117
116118
Example:
117119

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "testcafe-browser-provider-lambdatest",
3-
"version": "2.0.29",
3+
"version": "3.0.0",
44
"description": "lambdatest TestCafe browser provider plugin.",
55
"repository": "https://github.com/LambdaTest/testcafe-browser-provider-lambdatest",
66
"homepage": "https://github.com/LambdaTest/testcafe-browser-provider-lambdatest",

src/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default {
7878
const sessionUrl = ` ${AUTOMATION_DASHBOARD_URL}/logs/?sessionID=${this.openedBrowsers[id].sessionID} `;
7979

8080
if (PROCESS_ENVIRONMENT.LOG_LT_SESSION_URL) {
81-
const filePath = PROCESS_ENVIRONMENT.LT_SESSION_LOG_PATH || null;
81+
const filePath = PROCESS_ENVIRONMENT.LT_SESSION_LOG_PATH || 'sessionUrls.txt';
8282

8383
await this.writeSessionUrlToFile(sessionUrl, filePath);
8484
}
@@ -166,11 +166,10 @@ export default {
166166
},
167167

168168
async writeSessionUrlToFile (sessionUrl, filePath) {
169-
const effectiveFilePath = filePath || 'sessionUrls.txt';
170169
const dataToAppend = `${sessionUrl}\n`;
171170

172171
try {
173-
await fs.appendFile(effectiveFilePath, dataToAppend);
172+
await fs.appendFile(filePath, dataToAppend);
174173
}
175174
catch (err) {
176175
console.error('Error writing session URLs to file:', err);

0 commit comments

Comments
 (0)