astarte-platform / astarte_vmq_plugin

Astarte VerneMQ plugin publishes incoming messages on an AMQP exchange with some additional metadata, so they can be processed by other components.
http://astarte-platform.org/
Apache License 2.0
16 stars 10 forks source link

Tests: use `receive` for checking message ordering #72

Closed Annopaolo closed 1 year ago

Annopaolo commented 1 year ago

Manually checking the process mailbox is unreliable. Use a receive block, matching always the first message, in order to check that order of messages is the same as expected.

codecov[bot] commented 1 year ago

Codecov Report

Merging #72 (7d8ff10) into release-1.1 (7389c6b) will not change coverage. The diff coverage is n/a.

:exclamation: Current head 7d8ff10 differs from pull request most recent head 884640f. Consider uploading reports for the commit 884640f to get more accurate results

@@             Coverage Diff              @@
##           release-1.1      #72   +/-   ##
============================================
  Coverage        78.37%   78.37%           
============================================
  Files               11       11           
  Lines              222      222           
============================================
  Hits               174      174           
  Misses              48       48