Skip to content

Commit

Permalink
Merge pull request #62 from pma/hotfix/skip-open-direct-test-on-ci
Browse files Browse the repository at this point in the history
Skip test for open_direct on CI
  • Loading branch information
ono authored Apr 20, 2017
2 parents 61f2fc3 + 3036bd7 commit 97bb241
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ elixir:
sudo: false # to use faster container based build environment
otp_release:
- 19.2
script: mix test --exclude skip_ci
after_script:
- mix deps.get --only docs
- MIX_ENV=docs mix inch.report
Expand Down
23 changes: 12 additions & 11 deletions test/connection_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ defmodule ConnectionTest do

alias AMQP.Connection

@tag :skip_ci
# This test assumes that we have a running RabbitMQ with short
# nodename 'rabbit@localhost', and that it uses the same Erlang
# cookie as we do. And it's better to have RabbitMQ of version
# equal to that of amqp_client library used. We can achieve this
# with following sequence of commands under the same user that
# will run the test-suite:
#
# wget https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_9/rabbitmq-server-generic-unix-3.6.9.tar.xz
# tar xJvf rabbitmq-server-generic-unix-3.6.9.tar.xz
# cd rabbitmq_server-3.6.9
# RABBITMQ_NODENAME=rabbit@localhost ./sbin/rabbitmq-server
test "open direct connection" do
# This test assumes that we have a running RabbitMQ with short
# nodename 'rabbit@localhost', and that it uses the same Erlang
# cookie as we do. And it's better to have RabbitMQ of version
# equal to that of amqp_client library used. We can achieve this
# with following sequence of commands under the same user that
# will run the test-suite:
#
# wget https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_9/rabbitmq-server-generic-unix-3.6.9.tar.xz
# tar xJvf rabbitmq-server-generic-unix-3.6.9.tar.xz
# cd rabbitmq_server-3.6.9
# RABBITMQ_NODENAME=rabbit@localhost ./sbin/rabbitmq-server
:ok = ensure_distribution()
assert {:ok, conn} = Connection.open_direct node: :rabbit@localhost
assert :ok = Connection.close(conn)
Expand Down

0 comments on commit 97bb241

Please sign in to comment.