aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2015-05-10 15:55:32 +0200
committerJonas Schnelli <jonas.schnelli@include7.ch>2015-06-04 09:16:06 +0200
commit1f263c899ee0756ed9ed133f35bec18bdef20cdc (patch)
tree60931f07baeb2ae73492cda1bf91dbe521feca21 /src
parente04d9c25cf96edaf5b70baec6a21ceca624deea6 (diff)
fix rpc unit test, plain numbers are not JSON compatible object
UniValues read() does only read valid json.
Diffstat (limited to 'src')
-rw-r--r--src/test/rpc_tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp
index cbbecf08ef..991763abaf 100644
--- a/src/test/rpc_tests.cpp
+++ b/src/test/rpc_tests.cpp
@@ -123,8 +123,8 @@ BOOST_AUTO_TEST_CASE(rpc_format_monetary_values)
static Value ValueFromString(const std::string &str)
{
- Value value;
- BOOST_CHECK(value.read(str));
+ UniValue value;
+ BOOST_CHECK(value.setNumStr(str));
return value;
}