Giter Club home page Giter Club logo

Comments (7)

paulo-ferraz-oliveira avatar paulo-ferraz-oliveira commented on June 26, 2024

Without redis-server active:

==> eredis (eunit)
Compiled src/eredis_parser.erl
Compiled src/eredis.erl
Compiled src/eredis_sub.erl
Compiled src/basho_bench_driver_erldis.erl
Compiled src/basho_bench_driver_eredis.erl
Compiled src/eredis_client.erl
Compiled src/eredis_sub_client.erl
Compiled test/eredis_tests.erl
Compiled test/eredis_sub_tests.erl
Compiled test/eredis_parser_tests.erl
eredis_sub_tests: pubsub_test...*skipped*
undefined
*unexpected termination of test process*
::{connection_error,econnrefused}

=======================================================
  Failed: 0.  Skipped: 0.  Passed: 0.
One or more tests were cancelled.

With redis-server active:

==> eredis (eunit)

=ERROR REPORT==== 12-Sep-2018::14:23:54 ===
** Generic server <0.91.0> terminating 
** Last message in was {tcp,#Port<0.28393>,
                            <<"*3\r\n$7\r\nmessage\r\n$3\r\nfoo\r\n$2\r\n12\r\n">>}
** When Server state == {state,"127.0.0.1",6379,<<>>,100,#Port<0.28393>,
                               {pstate,undefined,undefined},
                               [<<"foo">>],
                               {#Ref<0.0.1.915>,<0.64.0>},
                               {[{message,<<"foo">>,<<"11">>,<0.91.0>},
                                 {message,<<"foo">>,<<"10">>,<0.91.0>},
                                 {message,<<"foo">>,<<"9">>,<0.91.0>},
                                 {message,<<"foo">>,<<"8">>,<0.91.0>},
                                 {message,<<"foo">>,<<"7">>,<0.91.0>},
                                 {message,<<"foo">>,<<"6">>,<0.91.0>},
                                 {message,<<"foo">>,<<"5">>,<0.91.0>},
                                 {message,<<"foo">>,<<"4">>,<0.91.0>},
                                 {message,<<"foo">>,<<"3">>,<0.91.0>}],
                                [{message,<<"foo">>,<<"2">>,<0.91.0>}]},
                               10,exit,need_ack}
** Reason for termination == 
** max_queue_size
  All 60 tests passed.

What is the behavior you expect?

from eredis.

knutin avatar knutin commented on June 26, 2024

Hmmm. This is a bit weird.. The test suite does print some error messages when we test the error handling. That part is definitively expected.

Is the second example with redis running? Could you verify by just running redis-cli? eredis expects the same default configuration parameters as redis-cli.

from eredis.

paulo-ferraz-oliveira avatar paulo-ferraz-oliveira commented on June 26, 2024

I identified the test results with "With redis-server active:" and "Without redis-server active:" in my reply.

from eredis.

knutin avatar knutin commented on June 26, 2024

Yes, I see that, but the tests wouldn't pass if there's no redis-server running. :)

from eredis.

paulo-ferraz-oliveira avatar paulo-ferraz-oliveira commented on June 26, 2024

Yes, I see that, but the tests wouldn't pass if there's no redis-server running. :)

"With" was actually without... it was identified the other way around 😄

from eredis.

knutin avatar knutin commented on June 26, 2024

Okay, that makes much more sense :)

Then my answer is "yes, this is expected behaviour". On success the return code of the test process will be 0.

I'll close the issue now. If you have further questions please reopen.

from eredis.

paulo-ferraz-oliveira avatar paulo-ferraz-oliveira commented on June 26, 2024

I had no questions or issues with eredis (apart from a github Issue I opened) 😄I was replying to the original question.

from eredis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.