Skip to content

Commit

Permalink
remove deps of promise in url test
Browse files Browse the repository at this point in the history
  • Loading branch information
hefangshi committed Mar 21, 2016
1 parent 746a4e8 commit e90988f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/ral.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,15 +683,15 @@ describe('ral', function () {
before(function (ok) {
isInited.on('done', ok);
});
ralP('GET_QS_SERV', {
ral('GET_QS_SERV', {
url: 'https://www.baidu.com/search/error.html',
unpack: 'string',
timeout: 5000,
rejectUnauthorized: false
}).then(function (data) {
}).on('data', function (data) {
data.should.match(/STATUS OK/);
done();
}).catch(function (err) {
}).on('error', function (err) {
should.not.exist(err);
done();
});
Expand All @@ -701,15 +701,15 @@ describe('ral', function () {
before(function (ok) {
isInited.on('done', ok);
});
ralP('GET_QS_SERV', {
ral('GET_QS_SERV', {
url: 'http://www.baidu.com/search/error.html',
unpack: 'string',
timeout: 5000,
rejectUnauthorized: false
}).then(function (data) {
}).on('data', function (data) {
data.should.match(/STATUS OK/);
done();
}).catch(function (err) {
}).on('error', function (err) {
should.not.exist(err);
done();
});
Expand Down

0 comments on commit e90988f

Please sign in to comment.