michaelklishin / langohr

A small, feature complete Clojure client for RabbitMQ that embraces AMQP 0.9.1 model
http://clojurerabbitmq.info
352 stars 45 forks source link

Issue running tests locally #66

Closed HeyBillFinn closed 9 years ago

HeyBillFinn commented 9 years ago

Hi!

I'm trying to run the tests locally. When I run lein all test, I see the following exception:

Performing task 'test' with profile(s): 'dev'
Reflection warning, langohr/core.clj:191:3 - call to method addQueueRecoveryListener can't be resolved (target class is unknown).
Using Clojure version {:major 1, :minor 6, :incremental 0, :qualifier nil}
Reflection warning, clj_http/multipart.clj:26:4 - call to org.apache.http.entity.mime.content.FileBody ctor can't be resolved.
Reflection warning, cheshire/core.clj:63:3 - call to method createJsonGenerator on com.fasterxml.jackson.core.JsonFactory can't be resolved (argument types: unknown).

lein test langohr.test.basic-test

lein test langohr.test.channel-test

lein test langohr.test.confirm-test

lein test langohr.test.consumers-test

lein test langohr.test.core-test

lein test :only langohr.test.core-test/test-connection-with-multiple-hosts

ERROR in (test-connection-with-multiple-hosts) (AMQConnection.java:340)
Uncaught exception, not in assertion.
expected: nil
  actual: com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.
 at com.rabbitmq.client.impl.AMQConnection.start (AMQConnection.java:340)
    com.rabbitmq.client.impl.recovery.RecoveryAwareAMQConnectionFactory.newConnection (RecoveryAwareAMQConnectionFactory.java:36)
    com.rabbitmq.client.impl.recovery.AutorecoveringConnection.init (AutorecoveringConnection.java:83)
    com.rabbitmq.client.ConnectionFactory.newConnection (ConnectionFactory.java:609)
    com.novemberain.langohr.Connection.init (Connection.java:90)
    langohr.core$connect.invoke (core.clj:93)
    langohr.test.core_test/fn (core_test.clj:42)
    clojure.test$test_var$fn__7187.invoke (test.clj:704)
    clojure.test$test_var.invoke (test.clj:704)
    clojure.test$test_vars$fn__7209$fn__7214.invoke (test.clj:722)
    clojure.test$default_fixture.invoke (test.clj:674)

The rabbitmq logs appear normal:

=INFO REPORT==== 23-Dec-2014::21:54:29 ===
Server startup complete; 10 plugins started.
 * rabbitmq_management_visualiser
 * rabbitmq_management
 * rabbitmq_web_dispatch
 * webmachine
 * mochiweb
 * rabbitmq_mqtt
 * rabbitmq_stomp
 * rabbitmq_management_agent
 * rabbitmq_amqp1_0
 * amqp_client

=INFO REPORT==== 23-Dec-2014::21:55:07 ===
accepting AMQP connection <0.397.0> (127.0.0.1:60179 -> 127.0.0.1:5672)

=INFO REPORT==== 23-Dec-2014::21:55:15 ===
accepting AMQP connection <0.407.0> (127.0.0.1:60180 -> 127.0.0.1:5672)

=INFO REPORT==== 23-Dec-2014::21:55:15 ===
closing AMQP connection <0.407.0> (127.0.0.1:60180 -> 127.0.0.1:5672)

=INFO REPORT==== 23-Dec-2014::21:55:15 ===
accepting AMQP connection <0.423.0> (127.0.0.1:60181 -> 127.0.0.1:5672)

=INFO REPORT==== 23-Dec-2014::21:55:15 ===
closing AMQP connection <0.423.0> (127.0.0.1:60181 -> 127.0.0.1:5672)

=INFO REPORT==== 23-Dec-2014::21:55:15 ===
accepting AMQP connection <0.436.0> (127.0.0.1:60182 -> 127.0.0.1:5672)

=INFO REPORT==== 23-Dec-2014::21:55:15 ===
closing AMQP connection <0.436.0> (127.0.0.1:60182 -> 127.0.0.1:5672)

=INFO REPORT==== 23-Dec-2014::21:55:15 ===
accepting AMQP connection <0.452.0> (127.0.0.1:60183 -> 127.0.0.1:5672)

=INFO REPORT==== 23-Dec-2014::21:55:15 ===
closing AMQP connection <0.452.0> (127.0.0.1:60183 -> 127.0.0.1:5672)

My environment is OS X 10.10.1, installed rabbitmq version 3.4.1 using Homebrew, and I have leiningen version 2.50. Has anyone else come across this? Did I miss a setup step?

Thanks, Bill

michaelklishin commented 9 years ago

See before_script.sh.