Skip to content

Commit 9d2e433

Browse files
committed
Turn off timeouts on tests.
1 parent 6239026 commit 9d2e433

File tree

7 files changed

+18
-12
lines changed

7 files changed

+18
-12
lines changed

.github/workflows/deploy-main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
id: deploy-worker
4343
uses: cloudflare/wrangler-action@v3
4444
with:
45+
quiet: true
4546
preCommands: node prepare-deploy.js
4647
command: deploy -e stage -c wrangler-versioned.toml
4748
apiToken: ${{ secrets.CLOUDFLARE_AUTH }}

.github/workflows/install-lint-test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
id: deploy-worker
4444
uses: cloudflare/wrangler-action@v3
4545
with:
46+
quiet: true
4647
preCommands: node prepare-deploy.js
4748
command: deploy -e stage -c wrangler-versioned.toml
4849
apiToken: ${{ secrets.CLOUDFLARE_AUTH }}

test/e2e/copy.spec.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import assert from 'node:assert';
55
const workerUrl = process.env.WORKER_URL;
66
const ORG = 'da-e2e-test';
77

8-
describe('/copy operation', () => {
9-
it('copies a file', async function() {
10-
this.timeout(60000);
8+
describe('/copy operation', function() {
9+
this.timeout(0);
10+
it('copies a file', async () => {
1111

1212
const blob = new Blob(['Hello World!'], { type: "text/html" });
1313
let body = new FormData();
@@ -45,8 +45,7 @@ describe('/copy operation', () => {
4545
assert.strictEqual(resp.status, 204);
4646
});
4747

48-
it('copies a folder', async function() {
49-
this.timeout(60000);
48+
it('copies a folder', async () => {
5049
const limit = 5;
5150
for (let i = 0; i < limit; i++) {
5251
const blob = new Blob(['Hello World!'], { type: "text/html" });

test/e2e/list.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ const workerUrl = process.env.WORKER_URL;
44

55
const ORG = 'da-e2e-test'
66

7-
describe('/list requests', () => {
7+
describe('/list requests', function () {
8+
this.timeout(0);
89
it('returns orgs', async () => {
910
const req = new Request(`${workerUrl}/list`);
1011
const resp = await fetch(req);

test/e2e/move.spec.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import assert from 'node:assert';
33
const workerUrl = process.env.WORKER_URL;
44
const ORG = 'da-e2e-test';
55

6-
describe('/move operation', () => {
7-
it('moves a file', async function() {
6+
describe('/move operation', function() {
7+
this.timeout(0);
8+
9+
it('moves a file', async () =>{
810
this.timeout(60000);
911
const label = 'move-spec-label';
1012
const blob = new Blob(['Hello World!'], { type: "text/html" });
@@ -52,8 +54,7 @@ describe('/move operation', () => {
5254
assert.strictEqual(resp.status, 204);
5355
});
5456

55-
it('moves a folder', async function () {
56-
this.timeout(60000);
57+
it('moves a folder', async () => {
5758
const limit = 1;
5859
for (let i = 0; i < limit; i++) {
5960
const blob = new Blob(['Hello World!'], { type: "text/html" });

test/e2e/source.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import assert from 'node:assert';
33
const workerUrl = process.env.WORKER_URL;
44
const ORG = 'da-e2e-test';
55

6-
describe('/source requests', () => {
6+
describe('/source requests', function () {
7+
this.timeout(0);
78

89
it('returns 404 for non-existing object', async () => {
910
const req = new Request(`${workerUrl}/source/${ORG}/source-spec/does-not-exist.html`);

test/e2e/version.spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import assert from 'node:assert';
33
const workerUrl = process.env.WORKER_URL;
44
const ORG = 'da-e2e-test';
55

6-
describe('/version* operations', () => {
6+
describe('/version* operations', function () {
7+
this.timeout(0);
8+
79
const label = 'version-spec-label';
810
it('creates a version of a file', async () => {
911
const blob = new Blob(['Hello World!'], { type: "text/html" });

0 commit comments

Comments
 (0)