Skip to content

Commit 8d8ef7d

Browse files
committed
fixed spec test
1 parent 7a7fe90 commit 8d8ef7d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/spec/sparkpost.spec.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,15 @@ describe('SparkPost Library', function() {
106106
});
107107

108108
it('should return an error when the request fails', function(done) {
109-
// simulate a timeout
109+
// simulate a bad multipart to make request error
110110
nock('https://api.sparkpost.com')
111111
.get('/api/v1/get/test/fail')
112-
.delayConnection(500)
113112
.reply(200);
114113

115114
var options = {
116115
method: 'GET'
117116
, uri: 'get/test/fail'
118-
, timeout: 100
117+
, multipart: [ {} ]
119118
};
120119

121120
client.request(options, function(err, data) {

0 commit comments

Comments
 (0)