Skip to content

Commit

Permalink
Clean up Cucumber webhook support.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristandunn committed Feb 28, 2014
1 parent fc10e42 commit 57053fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 1.0.0 — Unreleased

* Add verbose logging. (Tristan Dunn)
* Miscellaneous clean up. (Tristan Dunn)

## 0.14.0 — February 19th, 2014

Expand Down
8 changes: 1 addition & 7 deletions features/support/webhooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,9 @@ def self.call(environment)
EventMachine.run do
Thin::Logging.silent = true
Thin::Server.start("0.0.0.0", 8082, WebhookEndpoint)
Thread.current[:ready] = true
end
end.tap do |thread|
at_exit { thread.exit }

# Wait for the webhook endpoint server to start.
Timeout::timeout(5) do
sleep(0.05) until thread[:ready]
end
end

PusherFake.configuration.webhooks = ["http://localhost:8082"]
PusherFake.configuration.webhooks = ["http://127.0.0.1:8082"]

0 comments on commit 57053fc

Please sign in to comment.