From 745becffabb6e18ea02fdd293d5ccbbd4ef314b2 Mon Sep 17 00:00:00 2001 From: Gaara Date: Wed, 31 May 2017 11:05:38 +0800 Subject: [PATCH] fix ci timeout set timeout 10s --- tests/client/upyun.js | 3 ++- tests/server/upyun.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/client/upyun.js b/tests/client/upyun.js index ef3f440..a79791c 100644 --- a/tests/client/upyun.js +++ b/tests/client/upyun.js @@ -19,7 +19,8 @@ client.setBodySignCallback((ignore, params) => { return Promise.resolve(sign.getPolicyAndAuthorization(bucket, params)) }) -describe('index', () => { +describe('index', function () => { + this.timeout(10000) describe('#blockUpload', () => { it('should upload file success', async () => { const f = new Blob(['text'], {type: 'text/plain'}) diff --git a/tests/server/upyun.js b/tests/server/upyun.js index 1f99844..279c87b 100644 --- a/tests/server/upyun.js +++ b/tests/server/upyun.js @@ -10,7 +10,8 @@ const fixtures = path.join(__dirname, '../fixtures') const client = new Upyun(new Bucket('sdkimg', 'tester', 'grjxv2mxELR3')) -describe('index', () => { +describe('index', function () { + this.timeout(10000) describe('#usage', () => { it('should get usage success', async () => { let data = await client.usage()