Skip to content

Commit 53eb08a

Browse files
author
Ryan X. Charles
committed
fix travis issues
Summary: - Since the tests run slower on travis, fix one test to have a longer unlock period so that it reliably succeeds. - Change the version of node used by travis from 0.11, which is an unsupported experimental version, to 0.10, which is a supported version most people use in production. - Update an assertion in one test to give more useful feedback when an error. Reviewers: benchan Reviewed By: benchan Subscribers: ben Differential Revision: https://phabricator.bitgo.com/D864
1 parent ea60c61 commit 53eb08a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: node_js
22
before_install:
33
- npm install npm -g
44
node_js:
5-
- '0.11'
5+
- '0.10.37'
66
env:
77
matrix:
88
- TEST_SUITE=unit

test/bitgoExpress.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ describe('Bitgo Express', function() {
194194
it('send coins - wallet3 to wallet1 with fee', function(done) {
195195
agent.post('/api/v1/user/unlock')
196196
.set('Authorization', 'Bearer ' + TestBitGo.TEST_ACCESSTOKEN)
197-
.send({ otp: '0000000', duration: 5 })
197+
.send({ otp: '0000000', duration: 10 })
198198
.expect('Content-Type', /json/)
199199
.end(function(err, res) {
200200
if (err) { throw err; }
@@ -206,7 +206,7 @@ describe('Bitgo Express', function() {
206206
.expect('Content-Type', /json/)
207207
.end(function(err, res) {
208208
if (err) { throw err; }
209-
res.should.have.status(200);
209+
res.status.should.equal(200);
210210
res.body.should.have.property('tx');
211211
res.body.should.have.property('hash');
212212
res.body.should.have.property('fee');

0 commit comments

Comments
 (0)