You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by jb...@apache.org on 2017/11/11 08:14:08 UTC

[geode-native] branch develop updated: GEODE-3136: Fixes unit test exception assertion.

This is an automated email from the ASF dual-hosted git repository.

jbarrett pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git


The following commit(s) were added to refs/heads/develop by this push:
     new 2be9703  GEODE-3136: Fixes unit test exception assertion.
2be9703 is described below

commit 2be9703fb43aed5a16bf49fdaea730351df2c874
Author: Jacob Barrett <jb...@pivotal.io>
AuthorDate: Sat Nov 11 00:14:00 2017 -0800

    GEODE-3136: Fixes unit test exception assertion.
---
 cppcache/test/util/chrono/durationTest.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/cppcache/test/util/chrono/durationTest.cpp b/cppcache/test/util/chrono/durationTest.cpp
index 25e7773..9565a85 100644
--- a/cppcache/test/util/chrono/durationTest.cpp
+++ b/cppcache/test/util/chrono/durationTest.cpp
@@ -80,16 +80,16 @@ TEST(util_chrono_durationTest, assert_bounds) {
   ASSERT_NO_THROW(protocolTimeoutLimit(std::chrono::milliseconds(2147483647)));
 
   ASSERT_THROW(protocolTimeoutLimit(std::chrono::milliseconds(2147483648)),
-               std::invalid_argument);
+               apache::geode::client::IllegalArgumentException);
 
   ASSERT_THROW(protocolTimeoutLimit(std::chrono::hours(2400)),
-               std::invalid_argument);
+               apache::geode::client::IllegalArgumentException);
 
   ASSERT_NO_THROW(protocolTimeoutLimit(std::chrono::milliseconds(0)));
 
   ASSERT_THROW(protocolTimeoutLimit(std::chrono::milliseconds(-2)),
-               std::invalid_argument);
+               apache::geode::client::IllegalArgumentException);
 
   ASSERT_THROW(protocolTimeoutLimit(std::chrono::hours(-2400)),
-               std::invalid_argument);
+               apache::geode::client::IllegalArgumentException);
 }

-- 
To stop receiving notification emails like this one, please contact
['"commits@geode.apache.org" <co...@geode.apache.org>'].