You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kp...@apache.org on 2018/04/27 15:42:52 UTC

qpid-interop-test git commit: QPIDIT-119: Minor fix to C++ receiver shim, in which maps embedded in lists were being tested by the == operator, and this does not allow for a change in map order. Switched to using the checkMapEqual() method instead.

Repository: qpid-interop-test
Updated Branches:
  refs/heads/master dcc943f22 -> b9a3ef265


QPIDIT-119: Minor fix to C++ receiver shim, in which maps embedded in lists were being tested by the == operator, and this does not allow for a change in map order. Switched to using the checkMapEqual() method instead.


Project: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/commit/b9a3ef26
Tree: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/tree/b9a3ef26
Diff: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/diff/b9a3ef26

Branch: refs/heads/master
Commit: b9a3ef265908f44b2372890239cc4506f4998154
Parents: dcc943f
Author: Kim van der Riet <kv...@localhost.localdomain>
Authored: Fri Apr 27 11:42:41 2018 -0400
Committer: Kim van der Riet <kv...@localhost.localdomain>
Committed: Fri Apr 27 11:42:41 2018 -0400

----------------------------------------------------------------------
 .../src/qpidit/amqp_complex_types_test/Receiver.cpp                | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-interop-test/blob/b9a3ef26/shims/qpid-proton-cpp/src/qpidit/amqp_complex_types_test/Receiver.cpp
----------------------------------------------------------------------
diff --git a/shims/qpid-proton-cpp/src/qpidit/amqp_complex_types_test/Receiver.cpp b/shims/qpid-proton-cpp/src/qpidit/amqp_complex_types_test/Receiver.cpp
index 605daa2..7d93e4e 100644
--- a/shims/qpid-proton-cpp/src/qpidit/amqp_complex_types_test/Receiver.cpp
+++ b/shims/qpid-proton-cpp/src/qpidit/amqp_complex_types_test/Receiver.cpp
@@ -90,7 +90,7 @@ namespace qpidit
 
             TestDataListCitr_t r, e;
             for (r = receivedList.cbegin(), e = expectedList.cbegin(); r != receivedList.cend() && e != expectedList.cend(); ++r, ++e) {
-                if (_amqpSubType.compare("map") == 0) {
+                if (e->type() == proton::MAP) {
                     checkMapEqual(*r, *e);
                 } else if (e->type() == proton::LIST) {
                     checkListEqual(*r, *e);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org