Skip to content

Commit

Permalink
Merge pull request #70 from saucelabs/alana-update-examples
Browse files Browse the repository at this point in the history
Update examples
  • Loading branch information
amckenzie132 committed Jan 23, 2023
2 parents 7b93bae + c880cf6 commit 19e7da5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
name: Action Test
steps:
# ...
- uses: saucelabs/sauce-connect-action@v2
- uses: actions/checkout@v3 # reference files in the current repository
- uses: saucelabs/sauce-connect-action@v2 # or use the latest version with @main
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
Expand Down Expand Up @@ -84,7 +85,8 @@ jobs:
name: Action Test
steps:
# ...
- uses: saucelabs/sauce-connect-action@v3
- uses: actions/checkout@v3 # reference files in the current repository
- uses: saucelabs/sauce-connect-action@v2 # or use the latest version with @main
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
Expand Down
5 changes: 3 additions & 2 deletions dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5372,13 +5372,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.wait = void 0;
const fs_1 = __webpack_require__(747);
const timeoutSeconds = 60;
function wait(dir) {
return __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve, reject) => {
const timeout = setTimeout(() => {
watcher.close();
reject(new Error('timeout: SC was not ready even after we wait 45 secs'));
}, 45 * 1000);
reject(new Error(`timeout: SC was not ready even after we wait ${timeoutSeconds} secs`));
}, timeoutSeconds * 1000);
const watcher = fs_1.watch(dir, (eventType, filename) => {
if (filename !== 'sc.ready') {
return;
Expand Down

0 comments on commit 19e7da5

Please sign in to comment.