Permalink
Browse files

Update tests to use new HttpClient.handleRequest method

  • Loading branch information...
1 parent 5a30f30 commit 187bc6c7e4e3f0d40c0887a770b9005a38f5622d Loren Segal committed Mar 15, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/request.spec.coffee
View
@@ -66,7 +66,7 @@ describe 'AWS.Request', ->
it 'streams partial data and raises an error', ->
data = ''; error = null; reqError = null; done = false
spyOn(AWS.HttpClient, 'getInstance')
- AWS.HttpClient.getInstance.andReturn handleRequest: (req, cb, errCb) ->
+ AWS.HttpClient.getInstance.andReturn handleRequest: (req, opts, cb, errCb) ->
req = new EventEmitter()
req.statusCode = 200
req.headers = {}
@@ -92,7 +92,7 @@ describe 'AWS.Request', ->
data = ''; error = null; reqError = null; resp = null
retryCount = 0
spyOn(AWS.HttpClient, 'getInstance')
- AWS.HttpClient.getInstance.andReturn handleRequest: (req, cb, errCb) ->
+ AWS.HttpClient.getInstance.andReturn handleRequest: (req, opts, cb, errCb) ->
req = new EventEmitter()
req.statusCode = 200
req.headers = {}

0 comments on commit 187bc6c

Please sign in to comment.