From 19e3433035f0ba7369d7f99089e6b7a0c4819208 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Sat, 4 Nov 2017 19:03:04 +0000 Subject: [PATCH] Fix CI build --- .circleci/config.yml | 2 +- test/cpp-utils/EitherTest.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 990c5572..80cde1d1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -49,7 +49,7 @@ references: sudo chmod o-w /etc/apt/sources.list.d/clang.list DEBIAN_FRONTEND=noninteractive sudo apt-get update -qq - DEBIAN_FRONTEND=noninteractive sudo apt-get install -y git ccache $APT_COMPILER_PACKAGE cmake make libcurl4-openssl-dev libcrypto++-dev libssl-dev libfuse-dev python + DEBIAN_FRONTEND=noninteractive sudo apt-get install -y git ccache $APT_COMPILER_PACKAGE cmake make libcurl4-openssl-dev libcrypto++-dev libssl-dev libfuse-dev python clang-tidy # Use /dev/urandom when /dev/random is accessed to use less entropy sudo cp -a /dev/urandom /dev/random diff --git a/test/cpp-utils/EitherTest.cpp b/test/cpp-utils/EitherTest.cpp index 656b6610..443f2873 100644 --- a/test/cpp-utils/EitherTest.cpp +++ b/test/cpp-utils/EitherTest.cpp @@ -49,22 +49,22 @@ public: void EXPECT_LEFT_IS(const Expected &expected, either &value) { EXPECT_IS_LEFT(value); EXPECT_EQ(expected, value.left()); - EXPECT_EQ(expected, value.left_opt().value()); + EXPECT_EQ(expected, value.left_opt().get()); EXPECT_EQ(boost::none, value.right_opt()); const either &const_value = value; EXPECT_EQ(expected, const_value.left()); - EXPECT_EQ(expected, const_value.left_opt().value()); + EXPECT_EQ(expected, const_value.left_opt().get()); EXPECT_EQ(boost::none, const_value.right_opt()); } template void EXPECT_RIGHT_IS(const Expected &expected, either &value) { EXPECT_IS_RIGHT(value); EXPECT_EQ(expected, value.right()); - EXPECT_EQ(expected, value.right_opt().value()); + EXPECT_EQ(expected, value.right_opt().get()); EXPECT_EQ(boost::none, value.left_opt()); const either &const_value = value; EXPECT_EQ(expected, const_value.right()); - EXPECT_EQ(expected, const_value.right_opt().value()); + EXPECT_EQ(expected, const_value.right_opt().get()); EXPECT_EQ(boost::none, const_value.left_opt()); } }; @@ -244,7 +244,7 @@ TEST_F(EitherTest, ModifyRight) { TEST_F(EitherTest, ModifyLeftOpt) { either val = string("mystring1"); - val.left_opt().value() = "mystring2"; + val.left_opt().get() = "mystring2"; EXPECT_LEFT_IS("mystring2", val); }