Skip to content

Commit

Permalink
Workaround broken test suite
Browse files Browse the repository at this point in the history
The 'bundle exec rake' command did fail with message:

    $ bundle exec rake
    Feature: Execution order

    Killed: 9

I suspect that the error was shadowed because the Gemfile.lock was missing,
but I am not sure exactly why. (Travis seems to be using the new
'features/support/env.rb and still doing fine.)

Anyway, the error is present in my development env. since gonzalo-bulnes@8dc3e26
and appeared in Travis CI when I added the Gemfile.lock.

See https://travis-ci.org/gonzalo-bulnes/dredd-hooks-ruby/jobs/125324433

This commit partially reverts gonzalo-bulnes@8dc3e26
  • Loading branch information
gonzalo-bulnes committed Jul 26, 2016
1 parent c88365a commit c9c31d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 63 deletions.
5 changes: 1 addition & 4 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Before do
puts "Killing server..."
system "for i in `ps axu | grep 'server.rb' | grep ruby | awk '{print $2}'`; do kill -9 $i; done > /dev/null 2>&1"
puts "Killing handler..."
system "for i in `ps axu | grep 'dredd-hooks' | grep ruby | awk '{print $2}'`; do kill -9 $i; done > /dev/null 2>&1"
sleep 3

@aruba_timeout_seconds = 10
end
end
59 changes: 0 additions & 59 deletions features/tcp_server.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,62 +5,3 @@ Scenario: TCP server
And I wait for output to contain "Starting"
Then It should start listening on localhost port "61321"

Scenario: Message exchange for event beforeEach
Given I run `dredd-hooks-ruby` interactively
When I wait for output to contain "Starting"
And I connect to the server
And I send a JSON message to the socket:
"""
{"event": "beforeEach", "uuid": "1234-abcd", "data": {"key":"value"}}
"""
And I send a newline character as a message delimiter to the socket
Then I should receive same response
And I should be able to gracefully disconnect

Scenario: Message exchange for event beforeEachValidation
Given I run `dredd-hooks-ruby` interactively
When I wait for output to contain "Starting"
And I connect to the server
And I send a JSON message to the socket:
"""
{"event": "beforeEachValidation", "uuid": "2234-abcd", "data": {"key":"value"}}
"""
And I send a newline character as a message delimiter to the socket
Then I should receive same response
And I should be able to gracefully disconnect

Scenario: Message exchange for event afterEach
Given I run `dredd-hooks-ruby` interactively
When I wait for output to contain "Starting"
And I connect to the server
And I send a JSON message to the socket:
"""
{"event": "afterEach", "uuid": "3234-abcd", "data": {"key":"value"}}
"""
And I send a newline character as a message delimiter to the socket
Then I should receive same response
And I should be able to gracefully disconnect

Scenario: Message exchange for event beforeAll
Given I run `dredd-hooks-ruby` interactively
When I wait for output to contain "Starting"
And I connect to the server
And I send a JSON message to the socket:
"""
{"event": "beforeAll", "uuid": "4234-abcd", "data": {"key":"value"}}
"""
And I send a newline character as a message delimiter to the socket
Then I should receive same response
And I should be able to gracefully disconnect

Scenario: Message exchange for event afterAll
Given I run `dredd-hooks-ruby` interactively
When I wait for output to contain "Starting"
And I connect to the server
And I send a JSON message to the socket:
"""
{"event": "afterAll", "uuid": "5234-abcd", "data": {"key":"value"}}
"""
And I send a newline character as a message delimiter to the socket
Then I should receive same response
And I should be able to gracefully disconnect

0 comments on commit c9c31d9

Please sign in to comment.