Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Test exit status when there's a connection error to the server #862

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/fixtures/scripts/dummy-server-connection-error.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
console.log("Dummy server listening on port #{process.argv[2]}!")
setInterval(( -> ), 100)
5 changes: 5 additions & 0 deletions test/integration/cli/server-process-cli-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ describe 'CLI - Server Process', ->
apiDescriptionDocument: './test/fixtures/apiary.apib'
server: "#{COFFEE_BIN} test/fixtures/scripts/dummy-server-kill.coffee #{DEFAULT_SERVER_PORT}"
expectServerBoot: true
,
description: 'When is not able to communicate over HTTP'
apiDescriptionDocument: './test/fixtures/single-get.apib'
server: "#{COFFEE_BIN} test/fixtures/scripts/dummy-server-connection-error.coffee #{DEFAULT_SERVER_PORT}"
expectServerBoot: true
]
do (scenario) ->
describe scenario.description, ->
Expand Down