Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
williamlardier committed Oct 24, 2024
1 parent 0313b39 commit 96f0c1b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/end2end.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ jobs:
- name: Debug wait
uses: ./.github/actions/debug-wait
timeout-minutes: 60
if: failure() && runner.debug == '1'
if: always()
- name: Archive artifact logs and data
uses: ./.github/actions/archive-artifacts
env:
Expand Down
10 changes: 9 additions & 1 deletion tests/ctst/steps/website/website.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,24 @@ Then('the user should be able to load the index.html file from the {string} endp
const uri = `${baseUrl}${this.getSaved<string>('bucketName')}.${endpoint}`;
let response;
let content;
let tries = 20;
let tries = 60;

while (tries > 0) {
tries--;
try {
response = await fetch(uri);
this.logger.debug('website response', {
response,
});
content = await response.text();
this.logger.debug('website content', {
content,
});
assert.strictEqual(content.includes(pageMessage), true);
return;
} catch (err) {
// eslint-disable-next-line
console.error(err);
this.logger.debug('Error when fetching the bucket website', {
err,
uri,
Expand Down

0 comments on commit 96f0c1b

Please sign in to comment.