Skip to content

Commit

Permalink
fix: added comments (#240)
Browse files Browse the repository at this point in the history
* fix: added comments

* Create great-dingos-wink.md
  • Loading branch information
pushpam5 authored Dec 9, 2024
1 parent 5190daa commit 146116a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/great-dingos-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"appwright": patch
---

fix: added comments
1 change: 1 addition & 0 deletions src/providers/browserstack/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ export class BrowserStackDeviceProvider implements DeviceProvider {
*/
await new Promise((resolve) => setTimeout(resolve, 10_000));
const fileStream = fs.createWriteStream(tempPathForWriting);
//To catch the browserstack error in case all retries fails
try {
if (videoURL) {
await retry(
Expand Down
1 change: 1 addition & 0 deletions src/providers/lambdatest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export class LambdaTestDeviceProvider implements DeviceProvider {
const dir = path.dirname(pathToTestVideo);
fs.mkdirSync(dir, { recursive: true });
const fileStream = fs.createWriteStream(tempPathForWriting);
//To catch the lambdatest error in case all retries fails
try {
if (videoURL) {
await retry(
Expand Down

0 comments on commit 146116a

Please sign in to comment.