1. 16 Dec, 2021 1 commit
  2. 01 Dec, 2021 1 commit
    • Bjorn Svensson's avatar
      Add asynchronous test for pubsub using RESP3 (#1012) · da5a4ff3
      Bjorn Svensson authored
      * Include `unsubscribe` as a subscribe reply in RESP3
      
      By providing the (p)unsubscribe message via the subscribe callback,
      instead of via the push callback, we get the same behavior in RESP3
      as in RESP2.
      
      * Add asynchronous test for pubsub using RESP3
      
      The testcase will subscribe to a channel, and via a second client
      a message is published to the channel. After receiving the message
      the testcase will unsubscribe and disconnect.
      
      This RESP3 testcase reuses the subscribe callback from the RESP2
      testcase to make sure we have a common behavior.
      da5a4ff3
  3. 25 Nov, 2021 1 commit
    • Bjorn Svensson's avatar
      Valgrind returns error exit code when errors found (#1011) · b5716ee8
      Bjorn Svensson authored
      By default Valgrind will return the exit code from the tested process.
      Since our test can return 0 (ALL TESTS PASS) even when a leak was
      found we need to tell Valgrind to return an error code.
      This will fail the CI job when issues are found.
      b5716ee8
  4. 18 Nov, 2021 3 commits
  5. 17 Nov, 2021 1 commit
  6. 27 Oct, 2021 1 commit
  7. 26 Oct, 2021 1 commit
    • Björn Svensson's avatar
      Add build options for enabling async tests · 648763c3
      Björn Svensson authored
      Asynchronous testcases that requires the event library `libevent`
      can be built and enabled by using the added build flags:
      - ENABLE_ASYNC_TESTS when using CMake
      - TEST_ASYNC when using Make
      
      The async tests are disabled by default to avoid adding new requirements,
      but the testcases are built and run in CI.
      648763c3
  8. 21 Oct, 2021 1 commit
    • Bjorn Svensson's avatar
      Correcting the build target `coverage` for enabled SSL (#1009) · c98c6994
      Bjorn Svensson authored
      * Exclude includes from /usr in coverage reporting
      
      * Correct build target `coverage` for enabled ssl
      
      `USE_SSL=1 make coverage` will now build the test binary with the
      forwarded define HIREDIS_TEST_SSL. This avoids inconsistency between
      built test binary and the testrunner `test.sh`.
      This enables test coverage measurements for SSL too.
      c98c6994
  9. 20 Oct, 2021 1 commit
  10. 14 Oct, 2021 1 commit
  11. 12 Oct, 2021 3 commits
  12. 10 Oct, 2021 4 commits
  13. 09 Oct, 2021 1 commit
  14. 07 Oct, 2021 3 commits
  15. 04 Oct, 2021 3 commits
  16. 03 Oct, 2021 1 commit
  17. 19 Aug, 2021 1 commit
  18. 11 Jul, 2021 1 commit
  19. 17 Jun, 2021 1 commit
  20. 23 May, 2021 1 commit
  21. 02 May, 2021 3 commits
  22. 24 Apr, 2021 1 commit
  23. 11 Apr, 2021 1 commit
  24. 08 Apr, 2021 1 commit
  25. 02 Apr, 2021 2 commits
    • michael-grunder's avatar
      Change order independant push logic to not change behavior. · dfa33e60
      michael-grunder authored
      Since redisGetReplyFromReader is exposed in a header file, we probably
      shouldn't modify how it behaves in any way.  For this reason, handle the
      changed logic in an internal static helper method.
      dfa33e60
    • michael-grunder's avatar
      Handle the case where an invalidation is sent second. · 6204182a
      michael-grunder authored
      RESP3 invalidation messages always seemed to be sent before the response
      to a given command, but it appears this is not always the case:
      
      In Redis 6.2.0RC1 Redis sends the invalidation after the HSET in the
      following sequence:
      
      ```
      hget hash field
      $5
      value
      hset hash field value
      :0
      >2
      $10
      invalidate
      *1
      $4
      hash
      ```
      
      To account for this possibility just wrap redisGetReplyFromReader in a
      loop as it is called twice in redisGetReply.
      6204182a
  26. 26 Feb, 2021 1 commit
    • michael-grunder's avatar
      Merge branch 'reader-updates' · d6a0b192
      michael-grunder authored
      Updates and improvements to the RESP3 protocol reader.
      
      * Fix the unset len field when creating RESP3 double objects
      * Fix RESP3 double infinity parsing
      * Add additional validations when parsing various reply types
      * Fix the parent type assertions in certain default reply object
        creation callbacks (mostly to include PUSH as a parent).
      * Additional reader test cases
      * Implement RESP3 BIGNUM support
      * Refactor seekNewline() to use memchr()
      d6a0b192