Skip to content

Commit

Permalink
modify travis conf
Browse files Browse the repository at this point in the history
  • Loading branch information
zvkemp committed Sep 23, 2017
1 parent 189d4b5 commit 6bde042
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ language: ruby
services: docker
rvm:
- 2.4.1
before_install: gem install bundler
before_script: docker-compose up --build -d
before_install:
- gem install bundler
- docker-compose up --build -d
env:
- PHOENIX_HOST=localhost
5 changes: 3 additions & 2 deletions spec/phoenix/socket_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
it 'handles concurrent threads' do
# NOTE: This is a proof of concept, and is WAY more than anyone would ever want/need
# to spawn in a runtime process. I.e. don't do this. If one at a time isn't enough,
# do it in Elixir. Although you should probably also ask yourself why you need 500 processes
# do it in Elixir. Although you should probably also ask yourself why you need 100 processes
# to share a single websocket.
responses = (0..500).map do |n|
# ALSO NOTE: This used to be 500 but travis was choking on it
responses = (0..100).map do |n|
Thread.new do
Thread.current[:id] = n
socket_handler.request_reply(event: :echo, payload: { n: n }, timeout: nil)
Expand Down

0 comments on commit 6bde042

Please sign in to comment.