Skip to content

Commit 3466170

Browse files
committed
fix(test): default uc provider check
1 parent 9c261b8 commit 3466170

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/conf.test.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ const fs = require('fs');
77

88
describe('test Config class', function () {
99
const {
10-
Config
10+
Config,
11+
UC_HOST
1112
} = qiniu.conf;
1213
const {
1314
Endpoint,
@@ -49,8 +50,8 @@ describe('test Config class', function () {
4950
return config.getUcEndpointsProvider()
5051
.getEndpoints()
5152
.then(endpoints => {
52-
should.equal(endpoints.length, 1);
53-
should.equal(endpoints[0].getValue(), `${scheme}://uc.qbox.me`);
53+
endpoints.length.should.greaterThanOrEqual(1);
54+
should.equal(endpoints[0].getValue(), `${scheme}://${UC_HOST}`);
5455
});
5556
}));
5657
});

0 commit comments

Comments
 (0)