Skip to content

Commit

Permalink
Isolated failing test in node 0.10.33
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Kliment committed Nov 20, 2015
1 parent 6588760 commit f5b8799
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/reporters/apiary-reporter.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class ApiaryReporter

handleReqError = (error) =>
@serverError = true
console.log 'error handled'
console.log 'error handed'
if CONNECTION_ERRORS.indexOf(error.code) > -1
return callback "Apiary reporter: Error connecting to Apiary test reporting API."
else
Expand All @@ -264,10 +264,15 @@ class ApiaryReporter
if @verbose
logger.log 'Starting REST Reporter Request'

console.log @configuration.apiUrl
console.log 'https'
console.log options
req = https.request options, handleResponse
if @configuration.apiUrl?.indexOf('https') is 0
console.log @configuration.apiUrl
console.log 'https'
console.log options
req = https.request options, handleResponse
else
console.log 'http'
req = http.request options, handleResponse

req.on 'error', handleReqError
req.write postData
req.end()
Expand Down

0 comments on commit f5b8799

Please sign in to comment.